enabling assertions with jython, fixing one .format occurence

to provide the setting for http://paste.pocoo.org/show/147361/

--HG--
branch : trunk
This commit is contained in:
holger krekel
2009-10-27 21:51:05 +01:00
parent d2e6cd0523
commit 84efdacfc0
3 changed files with 4 additions and 4 deletions

View File

@@ -109,7 +109,7 @@ class DebugInterpreter(ast.NodeVisitor):
raise Failure()
return None, None
else:
raise AssertionError("can't handle {0}".format(node))
raise AssertionError("can't handle %s" %(node,))
def _compile(self, source, mode="eval"):
return compile(source, "<assertion interpretation>", mode)