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 /Parser | |
| 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 '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 2366b1a687..798650d6fb 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; |
