new except syntax

--HG--
branch : trunk
This commit is contained in:
Benjamin Peterson 2009-08-28 20:17:46 -05:00
parent e596d9df13
commit 695c8038e0
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class DebugInterpreter(ast.NodeVisitor):
co = self._compile(source)
try:
local = self.frame.eval(co)
except Exception, e:
except Exception as e:
# have to assume it isn't
local = False
if not local: