diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-06-07 19:57:46 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-06-07 19:57:46 (GMT) |
commit | 7eeb5b5e5017cf1354b084327b49390044946069 (patch) | |
tree | 6105fb6e6fa76d1d0e3c4d6e987b91aa623f7fc3 /Python/Python-ast.c | |
parent | fa68a6188a16562c1b4ba8cf879ce49decba5546 (diff) | |
download | cpython-7eeb5b5e5017cf1354b084327b49390044946069.zip cpython-7eeb5b5e5017cf1354b084327b49390044946069.tar.gz cpython-7eeb5b5e5017cf1354b084327b49390044946069.tar.bz2 |
Issue #8848: U / U# formats of Py_BuildValue() are just alias to s / s#
Diffstat (limited to 'Python/Python-ast.c')
-rw-r--r-- | Python/Python-ast.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c index 05fa541..bedd7d7 100644 --- a/Python/Python-ast.c +++ b/Python/Python-ast.c @@ -527,7 +527,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; |