diff Tools/scripts/findnocoding.py @ 40587:6b18a095c2e7

SF patch 1631942 by Collin Winter: (a) "except E, V" -> "except E as V" (b) V is now limited to a simple name (local variable) (c) V is now deleted at the end of the except block
author Guido van Rossum <guido@python.org>
date Wed, 10 Jan 2007 16:19:56 +0000
parents cc992d75d5b3
children 46625e6122e9
line wrap: on
line diff
--- a/Tools/scripts/findnocoding.py	Wed Jan 10 01:29:06 2007 +0000
+++ b/Tools/scripts/findnocoding.py	Wed Jan 10 16:19:56 2007 +0000
@@ -78,7 +78,7 @@
 
 try:
     opts, args = getopt.getopt(sys.argv[1:], 'cd')
-except getopt.error, msg:
+except getopt.error as msg:
     print >>sys.stderr, msg
     print >>sys.stderr, usage
     sys.exit(1)