mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
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:
parent
3faf9b4d48
commit
8299e46831
1 changed files with 0 additions and 6 deletions
|
|
@ -351,9 +351,6 @@ def uninstall(self):
|
|||
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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue