]> granicus.if.org Git - python/commitdiff
Add some comment markers to more clearly delineate what different parts of the
authorBrett Cannon <bcannon@gmail.com>
Thu, 22 Jan 2009 22:44:04 +0000 (22:44 +0000)
committerBrett Cannon <bcannon@gmail.com>
Thu, 22 Jan 2009 22:44:04 +0000 (22:44 +0000)
code are for. Also add a note that the import * at the end of the file should
eventually go away.

Lib/importlib/__init__.py

index 8d11502d56e8e8a8eebf0ff646c0de0217847571..d3e7f8b9b7eaa1ae747d996b6d4164c5379326fc 100644 (file)
@@ -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 *