Don't auto-install on import. This slows down apps that use

some of our modules for special purposes (e.g. rexec).
This commit is contained in:
Guido van Rossum 1996-10-04 19:57:11 +00:00
parent 3faf9b4d48
commit 8299e46831
1 changed files with 0 additions and 6 deletions

View File

@ -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()