From 695c8038e0bdf8454842c4f2f3f0b0d83017724d Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Fri, 28 Aug 2009 20:17:46 -0500 Subject: [PATCH] new except syntax --HG-- branch : trunk --- py/code/_assertionnew.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/code/_assertionnew.py b/py/code/_assertionnew.py index e807c6e9b..29f76efd4 100644 --- a/py/code/_assertionnew.py +++ b/py/code/_assertionnew.py @@ -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: