use the 's' format code instead of 'U'

This commit is contained in:
Benjamin Peterson 2010-06-07 22:24:18 +00:00
parent c34ce23f6e
commit 5b92772e24
1 changed files with 1 additions and 1 deletions

View File

@ -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;