mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 08:35:21 +00:00
Handle locals and globals separatly
This commit is contained in:
parent
bcbe9a20fd
commit
0bad9cb5d5
@ -58,8 +58,10 @@ def purge_pip():
|
||||
sys.modules.pop(name)
|
||||
del entry
|
||||
|
||||
if 'pip' in globals() or 'pip' in locals():
|
||||
del pip
|
||||
if 'pip' in globals():
|
||||
del globals()['pip']
|
||||
if 'pip' in locals():
|
||||
del locals()['pip']
|
||||
sys_modules_pip = sys.modules.pop('pip', None)
|
||||
if sys_modules_pip is not None:
|
||||
del sys_modules_pip
|
||||
|
Loading…
Reference in New Issue
Block a user