From a87e31ca525d7c6c204aa74a23e85e52a2ede70d Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Fri, 13 Sep 2013 16:52:19 -0400 Subject: Issue #18955: clarify what is removed by importlib.util.module_for_loader. --- Doc/library/importlib.rst | 6 +++--- 1 file 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 -- cgit v0.12