summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/__init__.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2009-03-15 00:53:05 (GMT)
committerBrett Cannon <bcannon@gmail.com>2009-03-15 00:53:05 (GMT)
commit7aa21f75c1d9ac36f1ab7e00aa9d0048ef61476d (patch)
treee36acc35af6673af7f7a867bf444524c7ffeba38 /Lib/importlib/__init__.py
parent0e0d8a63b15b83942dba2ef1ddc33fa2f4534e21 (diff)
downloadcpython-7aa21f75c1d9ac36f1ab7e00aa9d0048ef61476d.zip
cpython-7aa21f75c1d9ac36f1ab7e00aa9d0048ef61476d.tar.gz
cpython-7aa21f75c1d9ac36f1ab7e00aa9d0048ef61476d.tar.bz2
A few more docstring/API cleanups for importlib.
Diffstat (limited to 'Lib/importlib/__init__.py')
-rw-r--r--Lib/importlib/__init__.py16
1 files changed, 1 insertions, 15 deletions
diff --git a/Lib/importlib/__init__.py b/Lib/importlib/__init__.py
index 7474350..37577ff 100644
--- a/Lib/importlib/__init__.py
+++ b/Lib/importlib/__init__.py
@@ -26,20 +26,6 @@ import os
import re
import tokenize
-# XXX Temporary functions that should eventually be removed.
-def _set__import__():
- """Set __import__ to an instance of Import."""
- global original__import__
- original__import__ = __import__
- __builtins__['__import__'] = _bootstrap._import
-
-
-def _reset__import__():
- """Set __import__ back to the original implementation (assumes
- _set__import__ was called previously)."""
- __builtins__['__import__'] = original__import__
-
-
# Bootstrap help #####################################################
def _case_ok(directory, check):
@@ -116,7 +102,7 @@ marshal._r_long = _r_long
# Public API #########################################################
-__import__ = _bootstrap._import
+from ._bootstrap import __import__
def import_module(name, package=None):