]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove unused imports.
authorGeorg Brandl <georg@python.org>
Thu, 14 Oct 2010 07:17:44 +0000 (07:17 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 14 Oct 2010 07:17:44 +0000 (07:17 +0000)
Lib/pdb.py

index 9a91af6a537bb34e66c67357dd5567361a937764..a159d4ccd75468dbad89270a2bbb2459521c71da 100755 (executable)
@@ -73,11 +73,9 @@ import bdb
 import dis
 import os
 import re
-import code
 import pprint
 import traceback
 import inspect
-import types
 
 
 class Restart(Exception):
@@ -528,7 +526,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
             arg = arg[colon+1:].lstrip()
             try:
                 lineno = int(arg)
-            except ValueError as msg:
+            except ValueError:
                 self.error('Bad lineno: %s' % arg)
                 return
         else: