summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2016-10-14 05:58:47 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2016-10-14 05:58:47 (GMT)
commit1cea56b5973c3baf506f88cbd465c020957727d5 (patch)
treec0dada344a847201d9760eaa24a47bb987c64fae /Doc
parente1478e4ae2001ca352c3319bdc9c23a555f98788 (diff)
downloadcpython-1cea56b5973c3baf506f88cbd465c020957727d5.zip
cpython-1cea56b5973c3baf506f88cbd465c020957727d5.tar.gz
cpython-1cea56b5973c3baf506f88cbd465c020957727d5.tar.bz2
Issue28438 - Fix the link for pkgutil.get_data doc. Patch contributed by Xiang Zhang.
Diffstat (limited to 'Doc')
-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 c5ba8d8..abeac62 100644
--- a/Doc/library/pkgutil.rst
+++ b/Doc/library/pkgutil.rst
@@ -201,7 +201,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
@@ -217,4 +218,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.