summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-09-13 20:52:19 (GMT)
committerBrett Cannon <brett@python.org>2013-09-13 20:52:19 (GMT)
commita87e31ca525d7c6c204aa74a23e85e52a2ede70d (patch)
treeb793efd4f61d70e7bbb2c5ffce825af978931d5e
parent92ed89081e8fd7dce4fa4815bfb68d7a8d223bc8 (diff)
downloadcpython-a87e31ca525d7c6c204aa74a23e85e52a2ede70d.zip
cpython-a87e31ca525d7c6c204aa74a23e85e52a2ede70d.tar.gz
cpython-a87e31ca525d7c6c204aa74a23e85e52a2ede70d.tar.bz2
Issue #18955: clarify what is removed by importlib.util.module_for_loader.
-rw-r--r--Doc/library/importlib.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
index 1c0eff7..a5b2416 100644
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -975,9 +975,9 @@ an :term:`importer`.
reloading.
If an exception is raised by the decorated method and a module was added to
- :data:`sys.modules` it will be removed to prevent a partially initialized
- module from being in left in :data:`sys.modules`. If the module was already
- in :data:`sys.modules` then it is left alone.
+ :data:`sys.modules`, then the module will be removed to prevent a partially
+ initialized module from being in left in :data:`sys.modules`. If the module
+ was already in :data:`sys.modules` then it is left alone.
.. versionchanged:: 3.3
:attr:`__loader__` and :attr:`__package__` are automatically set