mirror of https://github.com/python/cpython.git
Get rid of confusing 'global' statement in global code.
(Andrew Dalke & kjpylint)
This commit is contained in:
parent
1e1cfa3a1c
commit
699f3bbba3
|
@ -903,7 +903,6 @@ def help():
|
||||||
|
|
||||||
# When invoked as main program, invoke the debugger on a script
|
# When invoked as main program, invoke the debugger on a script
|
||||||
if __name__=='__main__':
|
if __name__=='__main__':
|
||||||
global mainmodule, mainpyfile
|
|
||||||
if not sys.argv[1:]:
|
if not sys.argv[1:]:
|
||||||
print "usage: pdb.py scriptfile [arg] ..."
|
print "usage: pdb.py scriptfile [arg] ..."
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
|
|
Loading…
Reference in New Issue