summaryrefslogtreecommitdiff
path: root/Python/Python-ast.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
commit4fa8693da26ab37aefbbcb1b7a7d8469b71cdf74 (patch)
tree1f7efccf51b42528b374bf363edbda268935717f /Python/Python-ast.c
parent2f59c11e03bef214661e4caaad247a08a80e07a8 (diff)
downloadcpython-4fa8693da26ab37aefbbcb1b7a7d8469b71cdf74.tar.gz
Fixes for issue 1752184, ensuring type objects are always created
with a PyUnicode name.
Diffstat (limited to 'Python/Python-ast.c')
-rw-r--r--Python/Python-ast.c2
1 files changed, 1 insertions, 1 deletions
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;