From: Guido van Rossum Date: Fri, 4 Oct 1996 19:57:11 +0000 (+0000) Subject: Don't auto-install on import. This slows down apps that use X-Git-Tag: v1.4~149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8299e46831b1ab387fb0e615efb96497ffe774ae;p=thirdparty%2FPython%2Fcpython.git Don't auto-install on import. This slows down apps that use some of our modules for special purposes (e.g. rexec). --- diff --git a/Lib/ihooks.py b/Lib/ihooks.py index 3a7e4bf020d4..70aa8114d97e 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()