Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8299e46

Browse files
committed
Don't auto-install on import. This slows down apps that use
some of our modules for special purposes (e.g. rexec).
1 parent 3faf9b4 commit 8299e46

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

Lib/ihooks.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,6 @@ def uninstall(self):
351351
del __builtin__.unload
352352

353353

354-
# XXX Some experimental hacks -- importing ihooks auto-installs!
355-
# XXX (That's supposed to be transparent anyway...)
356-
357354
default_importer = None
358355
current_importer = None
359356

@@ -365,6 +362,3 @@ def install(importer = None):
365362
def uninstall():
366363
global current_importer
367364
current_importer.uninstall()
368-
369-
370-
install()

0 commit comments

Comments
 (0)