summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-11-02 23:07:07 +0000
committerGuido van Rossum <guido@python.org>2007-11-02 23:07:07 +0000
commite845c0f92244ad45a204420e23ebeb53c1a9bd79 (patch)
tree6e955f6c3bb266d082ab16506b272a91c80b3c01 /Python/errors.c
parent15c974651f7bb8e54a008359cf306a8e8ec13c12 (diff)
downloadcpython-git-e845c0f92244ad45a204420e23ebeb53c1a9bd79.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.c2
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);