Mercurial > cpython-lru_cache-weakref
diff Tools/scripts/redemo.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 | 71a294bd7950 |
| children | 979eb1bbf6e6 |
line wrap: on
line diff
--- a/Tools/scripts/redemo.py Wed Jan 10 01:29:06 2007 +0000 +++ b/Tools/scripts/redemo.py Wed Jan 10 16:19:56 2007 +0000 @@ -104,7 +104,7 @@ self.getflags()) bg = self.promptdisplay['background'] self.statusdisplay.config(text="", background=bg) - except re.error, msg: + except re.error as msg: self.compiled = None self.statusdisplay.config( text="re.error: %s" % str(msg),
