mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
#15923: merge with 3.2.
This commit is contained in:
commit
8a9cc526fe
2 changed files with 4 additions and 1 deletions
|
@ -1064,7 +1064,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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue