Skip to content

Commit

Permalink
docs: reload() is in importlib in current Python 3. (#266)
Browse files Browse the repository at this point in the history
The docs say that the Python 2 builtin __reload()__ was moved into the __imp__ module (which _used_ to be true) but in all currently supported versions of CPython, __reload()__ is found in the __importlib__ module: https://docs.python.org/3/library/importlib.html#importlib.reload
  • Loading branch information
cclauss authored and benjaminp committed Nov 26, 2018
1 parent e114efc commit 0b4265e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ Python 2 or 3, write::
from six.moves import html_parser

Similarly, to get the function to reload modules, which was moved from the
builtin module to the ``imp`` module, use::
builtin module to the ``importlib`` module, use::

from six.moves import reload_module

Expand Down

0 comments on commit 0b4265e

Please sign in to comment.