Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8a9cc52

Browse files
committed
#15923: merge with 3.2.
2 parents ffc3dee + cb2916a commit 8a9cc52

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ Tests
9999
Build
100100
-----
101101

102+
- Issue #15923: fix a mistake in asdl_c.py that resulted in a TypeError after
103+
2801bf875a24 (see #15801).
104+
102105
- Issue #15819: Make sure we can build Python out-of-tree from a readonly
103106
source directory. (Somewhat related to Issue #9860.)
104107

Parser/asdl_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ def simpleSum(self, sum, name):
10641064
self.emit("case %s:" % t.name, 2)
10651065
self.emit("Py_INCREF(%s_singleton);" % t.name, 3)
10661066
self.emit("return %s_singleton;" % t.name, 3)
1067-
self.emit("default:" % name, 2)
1067+
self.emit("default:", 2)
10681068
self.emit('/* should never happen, but just in case ... */', 3)
10691069
code = "PyErr_Format(PyExc_SystemError, \"unknown %s found\");" % name
10701070
self.emit(code, 3, reflow=False)

0 commit comments

Comments
 (0)