mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Set sys.modules[name] to None instead of 0 to block module import.
This commit is contained in:
parent
9c558bcfd1
commit
903396ee66
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ def _save_and_block_module(name, orig_modules):
|
|||
orig_modules[name] = sys.modules[name]
|
||||
except KeyError:
|
||||
saved = False
|
||||
sys.modules[name] = 0
|
||||
sys.modules[name] = None
|
||||
return saved
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue