]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Get rid of confusing 'global' statement in global code.
authorGuido van Rossum <guido@python.org>
Mon, 3 May 1999 18:12:08 +0000 (18:12 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 3 May 1999 18:12:08 +0000 (18:12 +0000)
(Andrew Dalke & kjpylint)

Lib/pdb.py

index 7d84e3c13cb55a5de0d7211f83783a27b6d5f534..97a4975164292cb63650f7697df9122d9753d9a3 100755 (executable)
@@ -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)