[Jython-checkins] jython: Fix string substition error.
frank.wierzbicki
jython-checkins at python.org
Thu Jan 2 20:28:30 CET 2014
http://hg.python.org/jython/rev/5ae3611df6c6
changeset: 7173:5ae3611df6c6
user: Frank Wierzbicki <fwierzbicki at gmail.com>
date: Thu Jan 02 11:15:18 2014 -0800
summary:
Fix string substition error.
files:
ast/asdl_antlr.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ast/asdl_antlr.py b/ast/asdl_antlr.py
--- a/ast/asdl_antlr.py
+++ b/ast/asdl_antlr.py
@@ -433,8 +433,8 @@
# The accept() method
self.emit("public <R> R accept(VisitorIF<R> visitor) throws Exception {", depth)
if is_product:
- self.emit('traverse(visitor);' % clsname, depth+1)
- self.emit('return null;' % clsname, depth+1)
+ self.emit('traverse(visitor);', depth+1)
+ self.emit('return null;', depth+1)
else:
self.emit('return visitor.visit%s(this);' % clsname, depth+1)
self.emit("}", depth)
@@ -564,7 +564,7 @@
self.emit("return (PyObject)%s;" % field.name, depth+1)
elif str(field.type) == 'bool':
self.emit("if (%s) return Py.True;" % field.name, depth+1)
- self.emit("return Py.False;" % field.name, depth+1)
+ self.emit("return Py.False;", depth+1)
elif str(field.type) == 'int':
self.emit("return Py.newInteger(%s);" % field.name, depth+1)
elif field.typedef.simple:
--
Repository URL: http://hg.python.org/jython
More information about the Jython-checkins
mailing list