File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ Packages or package names
108108
109109All of the ``importlib_resources `` APIs take a *package * as their first
110110parameter, but this can either be a package name (as a ``str ``) or an actual
111- module object, though the module *must * be a package [ #fn2 ]_ . If a string is
111+ module object, though the module *must * be a package. If a string is
112112passed in, it must name an importable Python package, and this is first
113113imported. Thus the above example could also be written as::
114114
@@ -197,12 +197,6 @@ should return a ``TraversableResources`` instance.
197197 ``__spec__.submodule_search_locations `` attribute, which will not be
198198 ``None `` for packages.
199199
200- .. [#fn2 ] Specifically, this means that in Python 2, the module object must
201- have an ``__path__ `` attribute, while in Python 3, the module's
202- ``__spec__.submodule_search_locations `` must not be ``None ``.
203- Otherwise a ``TypeError `` is raised.
204-
205-
206200 .. _`pkg_resources API` : http://setuptools.readthedocs.io/en/latest/pkg_resources.html#basic-resource-access
207201.. _`loader` : https://docs.python.org/3/reference/import.html#finders-and-loaders
208202.. _`ResourceReader` : https://docs.python.org/3.7/library/importlib.html#importlib.abc.ResourceReader
You can’t perform that action at this time.
0 commit comments