summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-10-04 19:57:11 (GMT)
committerGuido van Rossum <guido@python.org>1996-10-04 19:57:11 (GMT)
commit8299e46831b1ab387fb0e615efb96497ffe774ae (patch)
treecd4e4b1de931f922f634452f9338ffe0e58b18f9 /Lib
parent3faf9b4d4808d831351a8fb65f7e69f09d9db452 (diff)
downloadcpython-8299e46831b1ab387fb0e615efb96497ffe774ae.zip
cpython-8299e46831b1ab387fb0e615efb96497ffe774ae.tar.gz
cpython-8299e46831b1ab387fb0e615efb96497ffe774ae.tar.bz2
Don't auto-install on import. This slows down apps that use
some of our modules for special purposes (e.g. rexec).
Diffstat (limited to 'Lib')
-rw-r--r--Lib/ihooks.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/Lib/ihooks.py b/Lib/ihooks.py
index 3a7e4bf..70aa811 100644
--- a/Lib/ihooks.py
+++ b/Lib/ihooks.py
@@ -351,9 +351,6 @@ class ModuleImporter(_Verbose):
del __builtin__.unload
-# XXX Some experimental hacks -- importing ihooks auto-installs!
-# XXX (That's supposed to be transparent anyway...)
-
default_importer = None
current_importer = None
@@ -365,6 +362,3 @@ def install(importer = None):
def uninstall():
global current_importer
current_importer.uninstall()
-
-
-install()