diff options
author | Guido van Rossum <guido@python.org> | 2007-11-02 23:07:07 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-11-02 23:07:07 +0000 |
commit | 4fa8693da26ab37aefbbcb1b7a7d8469b71cdf74 (patch) | |
tree | 1f7efccf51b42528b374bf363edbda268935717f /Python/errors.c | |
parent | 2f59c11e03bef214661e4caaad247a08a80e07a8 (diff) | |
download | cpython-4fa8693da26ab37aefbbcb1b7a7d8469b71cdf74.tar.gz |
Fixes for issue 1752184, ensuring type objects are always created
with a PyUnicode name.
Diffstat (limited to 'Python/errors.c')
-rw-r--r-- | Python/errors.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/errors.c b/Python/errors.c index e543506faa..b45dad46e6 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -608,7 +608,7 @@ PyErr_NewException(const char *name, PyObject *base, PyObject *dict) 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); |