]> granicus.if.org Git - python/commitdiff
#15923: fix a mistake in asdl_c.py that resulted in a TypeError after 2801bf875a24...
authorEzio Melotti <ezio.melotti@gmail.com>
Sun, 30 Sep 2012 19:41:37 +0000 (22:41 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Sun, 30 Sep 2012 19:41:37 +0000 (22:41 +0300)
Misc/NEWS
Parser/asdl_c.py

index d22347d838a57541388986093d3ad81b7839080c..19a627a251b2eee16eac8e96c05b0895b9d6546f 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -564,6 +564,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.
 
index b85c07ec1b0b71af4deb6a8a16aef11545b09854..7f613db65a1e668512b83d813245b9b0cc20bfb4 100755 (executable)
@@ -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)