cpython: 7fb90c4ae643 (original) (raw)
Mercurial > cpython
changeset 104487:7fb90c4ae643 3.5
Issue28438 - Fix the link for pkgutil.get_data doc. Patch contributed by Xiang Zhang.
Senthil Kumaran senthil@uthcode.com | |
---|---|
date | Thu, 13 Oct 2016 22:58:47 -0700 |
parents | e05c546062a1 |
children | f2110f41012e 402eba63650c |
files | Doc/library/pkgutil.rst |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-)[+] [-] Doc/library/pkgutil.rst 6 |
line wrap: on
line diff
--- 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
- :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