diff options
| author | Guido van Rossum <guido@python.org> | 2007-01-10 16:19:56 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2007-01-10 16:19:56 +0000 |
| commit | b940e113bf90ff71b0ef57414ea2beea9d2a4bc0 (patch) | |
| tree | 0b9ea19eba1e665dac95126c3140ac2bc36326ad /Doc/tools/prechm.py | |
| parent | 893523e80a2003d4a630aafb84ba016e0070cbbd (diff) | |
| download | cpython-git-b940e113bf90ff71b0ef57414ea2beea9d2a4bc0.tar.gz | |
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
Diffstat (limited to 'Doc/tools/prechm.py')
| -rw-r--r-- | Doc/tools/prechm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tools/prechm.py b/Doc/tools/prechm.py index 57a43fd6fe..db1f965532 100644 --- a/Doc/tools/prechm.py +++ b/Doc/tools/prechm.py @@ -448,7 +448,7 @@ def do_project(library, output, arch, version): def openfile(file): try: p = open(file, "w") - except IOError, msg: + except IOError as msg: print file, ":", msg sys.exit(1) return p @@ -466,7 +466,7 @@ def do_it(args = None): try: optlist, args = getopt.getopt(args, 'ckpv:') - except getopt.error, msg: + except getopt.error as msg: print msg usage() |
