summaryrefslogtreecommitdiffstats
path: root/Parser/asdl_c.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2012-09-30 19:41:37 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2012-09-30 19:41:37 (GMT)
commitcb2916a7144679cdc9a5df430dfc1344e02243fb (patch)
tree996c230f01c8da0b2cfb71169c932c212dbd3bd7 /Parser/asdl_c.py
parentc2cd626497749db9e35034966a4622567ba229ee (diff)
downloadcpython-cb2916a7144679cdc9a5df430dfc1344e02243fb.zip
cpython-cb2916a7144679cdc9a5df430dfc1344e02243fb.tar.gz
cpython-cb2916a7144679cdc9a5df430dfc1344e02243fb.tar.bz2
#15923: fix a mistake in asdl_c.py that resulted in a TypeError after 2801bf875a24 (see #15801).
Diffstat (limited to 'Parser/asdl_c.py')
-rwxr-xr-xParser/asdl_c.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py
index b85c07e..7f613db 100755
--- a/Parser/asdl_c.py
+++ b/Parser/asdl_c.py
@@ -1010,7 +1010,7 @@ class ObjVisitor(PickleVisitor):
self.emit("case %s:" % t.name, 2)
self.emit("Py_INCREF(%s_singleton);" % t.name, 3)
self.emit("return %s_singleton;" % t.name, 3)
- self.emit("default:" % name, 2)
+ self.emit("default:", 2)
self.emit('/* should never happen, but just in case ... */', 3)
code = "PyErr_Format(PyExc_SystemError, \"unknown %s found\");" % name
self.emit(code, 3, reflow=False)