mirror of https://github.com/python/cpython
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 @@ mainpyfile = ''
|
|||
|
||||
# When invoked as main program, invoke the debugger on a script
|
||||
if __name__=='__main__':
|
||||
global mainmodule, mainpyfile
|
||||
if not sys.argv[1:]:
|
||||
print "usage: pdb.py scriptfile [arg] ..."
|
||||
sys.exit(2)
|
||||
|
|
Loading…
Reference in New Issue