From: Ezio Melotti Date: Sun, 30 Sep 2012 19:41:37 +0000 (+0300) Subject: #15923: fix a mistake in asdl_c.py that resulted in a TypeError after 2801bf875a24... X-Git-Tag: v2.7.4rc1~522 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c820de5e6017dd4065eb3fcfa708fe508fd6951e;p=thirdparty%2FPython%2Fcpython.git #15923: fix a mistake in asdl_c.py that resulted in a TypeError after 2801bf875a24 (see #15801). --- diff --git a/Misc/NEWS b/Misc/NEWS index e46b9a5774af..759ec4d9c5b1 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -430,6 +430,9 @@ Tests Build ----- +- Issue #15923: fix a mistake in asdl_c.py that resulted in a TypeError after + 2801bf875a24 (see #15801). + - Issue #11715: Fix multiarch detection without having Debian development tools (dpkg-dev) installed. diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index 6a465490b6a8..b6448c93def3 100755 --- a/Parser/asdl_c.py +++ b/Parser/asdl_c.py @@ -1033,7 +1033,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)