diff options
| author | Arc Riley <arcriley@gmail.com> | 2011-03-13 00:12:23 -0500 |
|---|---|---|
| committer | Arc Riley <arcriley@gmail.com> | 2011-03-13 00:12:23 -0500 |
| commit | efa667603bc41168dc547563fffef464b728adfa (patch) | |
| tree | 6b3f76ba3d107c984335253b3d42d9ab65cb7748 /docs/source/distutils/examples.rst | |
| parent | f3f78c2aca495aed87bc416e5f20134b9d0fc351 (diff) | |
| parent | e2d2d3d18380338920819d2bd0524f6629b1874b (diff) | |
| download | disutils2-efa667603bc41168dc547563fffef464b728adfa.tar.gz | |
Branch merge to trunk
Diffstat (limited to 'docs/source/distutils/examples.rst')
| -rw-r--r-- | docs/source/distutils/examples.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/source/distutils/examples.rst b/docs/source/distutils/examples.rst index fb89dc9..796ecbb 100644 --- a/docs/source/distutils/examples.rst +++ b/docs/source/distutils/examples.rst @@ -298,11 +298,11 @@ in the Metadata, and ``pyX.X`` the major and minor version of Python like ``2.7`` or ``3.2``. You can read back this static file, by using the -:class:`distutils2.dist.DistributionMetadata` class and its +:class:`distutils2.dist.Metadata` class and its :func:`read_pkg_file` method:: - >>> from distutils2.dist import DistributionMetadata - >>> metadata = DistributionMetadata() + >>> from distutils2.metadata import Metadata + >>> metadata = Metadata() >>> metadata.read_pkg_file(open('distribute-0.6.8-py2.7.egg-info')) >>> metadata.name 'distribute' @@ -315,7 +315,7 @@ Notice that the class can also be instantiated with a metadata file path to loads its values:: >>> pkg_info_path = 'distribute-0.6.8-py2.7.egg-info' - >>> DistributionMetadata(pkg_info_path).name + >>> Metadata(pkg_info_path).name 'distribute' |
