commit | e845c0f92244ad45a204420e23ebeb53c1a9bd79 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Nov 02 23:07:07 2007 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Nov 02 23:07:07 2007 +0000 |
tree | 6e955f6c3bb266d082ab16506b272a91c80b3c01 | |
parent | 15c974651f7bb8e54a008359cf306a8e8ec13c12 [diff] [blame] |
Fixes for issue 1752184, ensuring type objects are always created with a PyUnicode name.
diff --git a/Python/errors.c b/Python/errors.c index e543506..b45dad4 100644 --- a/Python/errors.c +++ b/Python/errors.c
@@ -608,7 +608,7 @@ goto failure; } /* Create a real new-style class. */ - result = PyObject_CallFunction((PyObject *)&PyType_Type, "sOO", + result = PyObject_CallFunction((PyObject *)&PyType_Type, "UOO", dot+1, bases, dict); failure: Py_XDECREF(bases);