From 8299e46831b1ab387fb0e615efb96497ffe774ae Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 4 Oct 1996 19:57:11 +0000 Subject: Don't auto-install on import. This slows down apps that use some of our modules for special purposes (e.g. rexec). --- Lib/ihooks.py | 6 ------ 1 file changed, 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() -- cgit v0.12