Issue #8848: U / U# formats of Py_BuildValue() are just alias to s / s#

This commit is contained in:
Victor Stinner 2010-06-07 19:57:46 +00:00
parent fa68a6188a
commit 7eeb5b5e50
7 changed files with 9 additions and 43 deletions

View file

@ -679,7 +679,7 @@ PyErr_NewException(const char *name, PyObject *base, PyObject *dict)
goto failure;
}
/* Create a real new-style class. */
result = PyObject_CallFunction((PyObject *)&PyType_Type, "UOO",
result = PyObject_CallFunction((PyObject *)&PyType_Type, "sOO",
dot+1, bases, dict);
failure:
Py_XDECREF(bases);