diff -r 9c7ed50483fe Doc/library/pkgutil.rst --- a/Doc/library/pkgutil.rst Mon May 10 21:12:44 2010 +0000 +++ b/Doc/library/pkgutil.rst Sat May 29 13:20:53 2010 +0900 @@ -45,11 +45,11 @@ Get a resource from a 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 - ``..`` is not allowed, and nor is a rooted name (starting with a ``/``). + 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 ``..`` is not allowed, and nor is a rooted name (starting with a ``/``). The function returns a binary string that is the contents of the specified resource. @@ -60,5 +60,5 @@ 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 - which does not support :func:`get_data`, then None is returned. + 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.