[Python-checkins] cpython: Issue #18955: clarify what is removed by importlib.util.module_for_loader.

brett.cannon python-checkins at python.org
Fri Sep 13 22:52:34 CEST 2013


http://hg.python.org/cpython/rev/ecc18ec4a12e
changeset:   85684:ecc18ec4a12e
parent:      85681:eb332e3dc303
user:        Brett Cannon <brett at python.org>
date:        Fri Sep 13 16:52:19 2013 -0400
summary:
  Issue #18955: clarify what is removed by importlib.util.module_for_loader.

files:
  Doc/library/importlib.rst |  6 +++---
  1 files changed, 3 insertions(+), 3 deletions(-)


diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -975,9 +975,9 @@
     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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list