Mercurial > cpython-lru_cache-weakref
diff Python/Python-ast.c @ 43755:704e6711e50d
Fixes for issue 1752184, ensuring type objects are always created
with a PyUnicode name.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 02 Nov 2007 23:07:07 +0000 |
| parents | 88aaa380f091 |
| children | f324631462a2 |
line wrap: on
line diff
--- a/Python/Python-ast.c Fri Nov 02 16:10:06 2007 +0000 +++ b/Python/Python-ast.c Fri Nov 02 23:07:07 2007 +0000 @@ -410,7 +410,7 @@ } 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;
