diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-05-14 14:36:18 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-05-14 14:36:18 (GMT) |
commit | 766ad36de54203f6d5af21bbb20ba375ca1d66a8 (patch) | |
tree | b5a496928f7f2520731b815473c908f3f05464e8 /Doc/library/pkgutil.rst | |
parent | 9467b212f5dd4558443d03584e1ed9bca5a2b780 (diff) | |
download | cpython-766ad36de54203f6d5af21bbb20ba375ca1d66a8.zip cpython-766ad36de54203f6d5af21bbb20ba375ca1d66a8.tar.gz cpython-766ad36de54203f6d5af21bbb20ba375ca1d66a8.tar.bz2 |
Merged revisions 81163 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81163 | victor.stinner | 2010-05-14 16:20:07 +0200 (ven., 14 mai 2010) | 2 lines
Doc: replace PEP xxx by :pep:`xxx` to create a link on the PEP
........
Diffstat (limited to 'Doc/library/pkgutil.rst')
-rw-r--r-- | Doc/library/pkgutil.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/pkgutil.rst b/Doc/library/pkgutil.rst index c097749..0287c63 100644 --- a/Doc/library/pkgutil.rst +++ b/Doc/library/pkgutil.rst @@ -41,7 +41,7 @@ This module provides functions to manipulate packages: Get a resource from a package. - This is a wrapper for the PEP 302 loader :func:`get_data` API. The package + This is a wrapper for the :pep:`302` loader :func:`get_data` API. The package argument should be the name of a package, in standard module format (foo.bar). The resource argument should be in the form of a relative filename, using ``/`` as the path separator. The parent directory name @@ -56,5 +56,5 @@ This module provides functions to manipulate packages: d = os.path.dirname(sys.modules[package].__file__) data = open(os.path.join(d, resource), 'rb').read() - If the package cannot be located or loaded, or it uses a PEP 302 loader + If the package cannot be located or loaded, or it uses a :pep:`302` loader which does not support :func:`get_data`, then None is returned. |