]> granicus.if.org Git - python/commitdiff
Issue #18955: clarify what is removed by importlib.util.module_for_loader.
authorBrett Cannon <brett@python.org>
Fri, 13 Sep 2013 20:52:19 +0000 (16:52 -0400)
committerBrett Cannon <brett@python.org>
Fri, 13 Sep 2013 20:52:19 +0000 (16:52 -0400)
Doc/library/importlib.rst

index 1c0eff7f52a29986edf076763532c82bb4fcbfa4..a5b241658f44fe3a5e33af60e0da17e424749e8f 100644 (file)
@@ -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