From: Éric Araujo Date: Fri, 15 Jul 2011 15:48:20 +0000 (+0200) Subject: Fix :file: constructs in packaging.database docs X-Git-Tag: v3.3.0a1~1901 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dccf9855fcfde49f53dd454c83115d0aacc71e71;p=thirdparty%2FPython%2Fcpython.git Fix :file: constructs in packaging.database docs --- diff --git a/Doc/library/packaging.database.rst b/Doc/library/packaging.database.rst index 2a8c39f92c42..5d0ff216d929 100644 --- a/Doc/library/packaging.database.rst +++ b/Doc/library/packaging.database.rst @@ -33,7 +33,7 @@ Classes representing installed distributions .. method:: get_distinfo_file(path, binary=False) Return a read-only file object for a file located at - :file:`{project-version}.dist-info/path}`. *path* should be a + :file:`{project}-{version}.dist-info/{path}`. *path* should be a ``'/'``-separated path relative to the ``.dist-info`` directory or an absolute path; if it is an absolute path and doesn't start with the path to the :file:`.dist-info` directory, a :class:`PackagingError` is raised. @@ -72,7 +72,7 @@ Classes representing installed distributions .. attribute:: metadata Instance of :class:`packaging.metadata.Metadata` filled with the contents - of the :file:`{project-version}.dist-info/METADATA` file. + of the :file:`{project}-{version}.dist-info/METADATA` file. .. attribute:: name