Skip to content

Commit ccb1161

Browse files
codeandfireFFY00
authored andcommitted
Removed Python 2 related footnote
1 parent fe3120a commit ccb1161

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

docs/using.rst

+1-7
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Packages or package names
108108

109109
All of the ``importlib_resources`` APIs take a *package* as their first
110110
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
112112
passed in, it must name an importable Python package, and this is first
113113
imported. 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

0 commit comments

Comments
 (0)