summaryrefslogtreecommitdiffstats
path: root/Doc/library/pkgutil.rst
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2016-10-14 05:59:36 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2016-10-14 05:59:36 (GMT)
commitc972d1c76f703aaa2fa508e606891bd414f3d215 (patch)
treecfb5d94729e0a257d207c29d88199db77cb72c9c /Doc/library/pkgutil.rst
parent7b16652f1c898c57f5b11f2f61860bf4f1c47bf7 (diff)
parent1cea56b5973c3baf506f88cbd465c020957727d5 (diff)
downloadcpython-c972d1c76f703aaa2fa508e606891bd414f3d215.zip
cpython-c972d1c76f703aaa2fa508e606891bd414f3d215.tar.gz
cpython-c972d1c76f703aaa2fa508e606891bd414f3d215.tar.bz2
[merge from 3.5] Issue28438 - Fix the link for pkgutil.get_data doc.
Patch contributed by Xiang Zhang.
Diffstat (limited to 'Doc/library/pkgutil.rst')
-rw-r--r--Doc/library/pkgutil.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/library/pkgutil.rst b/Doc/library/pkgutil.rst
index 3b6c925..90d69e4 100644
--- a/Doc/library/pkgutil.rst
+++ b/Doc/library/pkgutil.rst
@@ -206,7 +206,8 @@ support.
Get a resource from a package.
- This is a wrapper for the :term:`loader` :func:`get_data` API. The
+ This is a wrapper for the :term:`loader`
+ :meth:`get_data <importlib.abc.ResourceLoader.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
@@ -222,4 +223,5 @@ support.
data = open(os.path.join(d, resource), 'rb').read()
If the package cannot be located or loaded, or it uses a :term:`loader`
- which does not support :func:`get_data`, then ``None`` is returned.
+ which does not support :meth:`get_data <importlib.abc.ResourceLoader.get_data>`,
+ then ``None`` is returned.