mirror of https://github.com/python/cpython
Keep __main__ namespace clean
This commit is contained in:
parent
5e156add1f
commit
d8a6c5f4f4
|
@ -35,7 +35,7 @@ if '-p' in sys.argv:
|
||||||
|
|
||||||
# this module will become the namespace used by the interactive
|
# this module will become the namespace used by the interactive
|
||||||
# interpreter; remove all variables we have defined.
|
# interpreter; remove all variables we have defined.
|
||||||
del sys, __file__, split, join, isdir
|
del sys, __file__, split, join, isdir, idlelib
|
||||||
__import__('run').main()
|
__import__('run').main()
|
||||||
else:
|
else:
|
||||||
# Load idlelib/idle.py which starts the application.
|
# Load idlelib/idle.py which starts the application.
|
||||||
|
|
Loading…
Reference in New Issue