File tree 1 file changed +1
-7
lines changed
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
108
108
109
109
All of the ``importlib_resources `` APIs take a *package * as their first
110
110
parameter, 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
112
112
passed in, it must name an importable Python package, and this is first
113
113
imported. Thus the above example could also be written as::
114
114
@@ -197,12 +197,6 @@ should return a ``TraversableResources`` instance.
197
197
``__spec__.submodule_search_locations `` attribute, which will not be
198
198
``None `` for packages.
199
199
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
-
206
200
.. _`pkg_resources API` : http://setuptools.readthedocs.io/en/latest/pkg_resources.html#basic-resource-access
207
201
.. _`loader` : https://docs.python.org/3/reference/import.html#finders-and-loaders
208
202
.. _`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