summaryrefslogtreecommitdiff
path: root/Lib/importlib/util.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-05-28 17:29:34 -0400
committerBrett Cannon <brett@python.org>2013-05-28 17:29:34 -0400
commita3687f0d6896673689d8dd5c13e113947f66e921 (patch)
tree6d14bef5ece4b63451cdf2ca59a81fd2cca5de58 /Lib/importlib/util.py
parent4dbae881311073eedd6ef290ec206978f530ef98 (diff)
downloadcpython-git-a3687f0d6896673689d8dd5c13e113947f66e921.tar.gz
Introduce importlib.util.ModuleManager which is a context manager to
handle providing (and cleaning up if needed) the module to be loaded. A future commit will use the context manager in Lib/importlib/_bootstrap.py and thus why the code is placed there instead of in Lib/importlib/util.py.
Diffstat (limited to 'Lib/importlib/util.py')
-rw-r--r--Lib/importlib/util.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/importlib/util.py b/Lib/importlib/util.py
index 1316437102..f817a40fa1 100644
--- a/Lib/importlib/util.py
+++ b/Lib/importlib/util.py
@@ -1,5 +1,6 @@
"""Utility code for constructing importers, etc."""
+from ._bootstrap import ModuleManager
from ._bootstrap import module_for_loader
from ._bootstrap import set_loader
from ._bootstrap import set_package