[Python-checkins] cpython (3.2): #15923: fix a mistake in asdl_c.py that resulted in a TypeError after
ezio.melotti
python-checkins at python.org
Sun Sep 30 21:49:08 CEST 2012
http://hg.python.org/cpython/rev/cb988d601803
changeset: 79344:cb988d601803
branch: 3.2
parent: 79334:d8d52b5b4bc2
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Sun Sep 30 22:41:37 2012 +0300
summary:
#15923: fix a mistake in asdl_c.py that resulted in a TypeError after 2801bf875a24 (see #15801).
files:
Misc/NEWS | 3 +++
Parser/asdl_c.py | 2 +-
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -564,6 +564,9 @@
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
--- a/Parser/asdl_c.py
+++ b/Parser/asdl_c.py
@@ -1010,7 +1010,7 @@
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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list