Kaydet (Commit) 1151c8b7 authored tarafından Zachary Ware's avatar Zachary Ware

Closes #22146: Merge with 3.4

...@@ -69,7 +69,7 @@ builtin___build_class__(PyObject *self, PyObject *args, PyObject *kwds) ...@@ -69,7 +69,7 @@ builtin___build_class__(PyObject *self, PyObject *args, PyObject *kwds)
func = PyTuple_GET_ITEM(args, 0); /* Better be callable */ func = PyTuple_GET_ITEM(args, 0); /* Better be callable */
if (!PyFunction_Check(func)) { if (!PyFunction_Check(func)) {
PyErr_SetString(PyExc_TypeError, PyErr_SetString(PyExc_TypeError,
"__build__class__: func must be a function"); "__build_class__: func must be a function");
return NULL; return NULL;
} }
name = PyTuple_GET_ITEM(args, 1); name = PyTuple_GET_ITEM(args, 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment