Mercurial > cpython-lru_cache-weakref
diff Tools/scripts/treesync.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 | 081b4f0e81b7 |
| children | 46625e6122e9 |
line wrap: on
line diff
--- a/Tools/scripts/treesync.py Wed Jan 10 01:29:06 2007 +0000 +++ b/Tools/scripts/treesync.py Wed Jan 10 16:19:56 2007 +0000 @@ -78,7 +78,7 @@ print "creating slave directory", slave try: os.mkdir(slave) - except os.error, msg: + except os.error as msg: print "can't make slave directory", slave, ":", msg return else:
