Commit 699f3bbb authored by Guido van Rossum's avatar Guido van Rossum

Get rid of confusing 'global' statement in global code.

(Andrew Dalke & kjpylint)
parent 1e1cfa3a
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment