summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/util.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2009-02-17 02:45:03 (GMT)
committerBrett Cannon <bcannon@gmail.com>2009-02-17 02:45:03 (GMT)
commitd2e7b3381532720cdfafbf59491bb74b7ff31b51 (patch)
treea1fd1d30a63d323cc5ee605dd43861c945202773 /Lib/importlib/util.py
parent0586ed6288b98520dccaecfdbfd88cda5392bc91 (diff)
downloadcpython-d2e7b3381532720cdfafbf59491bb74b7ff31b51.zip
cpython-d2e7b3381532720cdfafbf59491bb74b7ff31b51.tar.gz
cpython-d2e7b3381532720cdfafbf59491bb74b7ff31b51.tar.bz2
Implement the more specific PEP 302 semantics for loaders and what happens upon
load failure in relation to reloads. Also expose importlib.util.module_for_loader to handle all of the details of this along with making sure all current loaders behave nicely.
Diffstat (limited to 'Lib/importlib/util.py')
-rw-r--r--Lib/importlib/util.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/importlib/util.py b/Lib/importlib/util.py
new file mode 100644
index 0000000..6250d5b
--- /dev/null
+++ b/Lib/importlib/util.py
@@ -0,0 +1,2 @@
+"""Utility code for constructing importers, etc."""
+from ._bootstrap import module_for_loader