diff options
author | Guido van Rossum <guido@python.org> | 2007-11-02 23:07:07 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-11-02 23:07:07 (GMT) |
commit | e845c0f92244ad45a204420e23ebeb53c1a9bd79 (patch) | |
tree | 6e955f6c3bb266d082ab16506b272a91c80b3c01 /Parser | |
parent | 15c974651f7bb8e54a008359cf306a8e8ec13c12 (diff) | |
download | cpython-e845c0f92244ad45a204420e23ebeb53c1a9bd79.zip cpython-e845c0f92244ad45a204420e23ebeb53c1a9bd79.tar.gz cpython-e845c0f92244ad45a204420e23ebeb53c1a9bd79.tar.bz2 |
Fixes for issue 1752184, ensuring type objects are always created
with a PyUnicode name.
Diffstat (limited to 'Parser')
-rwxr-xr-x | Parser/asdl_c.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index 2366b1a..798650d 100755 --- a/Parser/asdl_c.py +++ b/Parser/asdl_c.py @@ -415,7 +415,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; |