summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/__init__.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2009-01-22 22:44:04 (GMT)
committerBrett Cannon <bcannon@gmail.com>2009-01-22 22:44:04 (GMT)
commit7f400e1366b1ad780eb8bc892fa903bd067693bc (patch)
tree076a88a8ce3bc9d78124ad892215c72f2f2bd008 /Lib/importlib/__init__.py
parent5abdc93eb85bc434c3b81b6c7fd1f05e7c9b5fb8 (diff)
downloadcpython-7f400e1366b1ad780eb8bc892fa903bd067693bc.zip
cpython-7f400e1366b1ad780eb8bc892fa903bd067693bc.tar.gz
cpython-7f400e1366b1ad780eb8bc892fa903bd067693bc.tar.bz2
Add some comment markers to more clearly delineate what different parts of the
code are for. Also add a note that the import * at the end of the file should eventually go away.
Diffstat (limited to 'Lib/importlib/__init__.py')
-rw-r--r--Lib/importlib/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/importlib/__init__.py b/Lib/importlib/__init__.py
index 8d11502d..d3e7f8b 100644
--- a/Lib/importlib/__init__.py
+++ b/Lib/importlib/__init__.py
@@ -38,6 +38,8 @@ def _reset__import__():
__builtins__['__import__'] = original__import__
+# Bootstrap help #####################################################
+
def _case_ok(directory, check):
"""Check if the directory contains something matching 'check'.
@@ -110,6 +112,8 @@ marshal._w_long = _w_long
marshal._r_long = _r_long
+# Public API #########################################################
+
__import__ = _bootstrap.Import().__call__
@@ -134,5 +138,5 @@ def import_module(name, package=None):
return sys.modules[name]
-
+# XXX This should go away once the public API is done.
from ._bootstrap import *