From e845c0f92244ad45a204420e23ebeb53c1a9bd79 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 2 Nov 2007 23:07:07 +0000 Subject: Fixes for issue 1752184, ensuring type objects are always created with a PyUnicode name. --- Python/Python-ast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/Python-ast.c') diff --git a/Python/Python-ast.c b/Python/Python-ast.c index d89b610a8a..0ccf489d45 100644 --- a/Python/Python-ast.c +++ b/Python/Python-ast.c @@ -410,7 +410,7 @@ static PyTypeObject* make_type(char *type, PyTypeObject* base, char**fields, int } PyTuple_SET_ITEM(fnames, i, field); } - result = PyObject_CallFunction((PyObject*)&PyType_Type, "s(O){sOss}", + result = PyObject_CallFunction((PyObject*)&PyType_Type, "U(O){sOss}", type, base, "_fields", fnames, "__module__", "_ast"); Py_DECREF(fnames); return (PyTypeObject*)result; -- cgit v1.2.1