From 5b92772e242f3302f11b1d6e3d451370b98e01d5 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 7 Jun 2010 22:24:18 +0000 Subject: use the 's' format code instead of 'U' --- Parser/asdl_c.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index c1e07d2..2b3be2b 100755 --- a/Parser/asdl_c.py +++ b/Parser/asdl_c.py @@ -722,7 +722,7 @@ static PyTypeObject* make_type(char *type, PyTypeObject* base, char**fields, int } PyTuple_SET_ITEM(fnames, i, field); } - result = PyObject_CallFunction((PyObject*)&PyType_Type, "U(O){sOss}", + result = PyObject_CallFunction((PyObject*)&PyType_Type, "s(O){sOss}", type, base, "_fields", fnames, "__module__", "_ast"); Py_DECREF(fnames); return (PyTypeObject*)result; -- cgit v0.12