Kaydet (Commit) 84076d8a authored tarafından Benjamin Peterson's avatar Benjamin Peterson

update asdl_c.py from r66377

üst 05e34495
...@@ -596,7 +596,7 @@ ast_type_init(PyObject *self, PyObject *args, PyObject *kw) ...@@ -596,7 +596,7 @@ ast_type_init(PyObject *self, PyObject *args, PyObject *kw)
if (PyTuple_GET_SIZE(args) > 0) { if (PyTuple_GET_SIZE(args) > 0) {
if (numfields != PyTuple_GET_SIZE(args)) { if (numfields != PyTuple_GET_SIZE(args)) {
PyErr_Format(PyExc_TypeError, "%.400s constructor takes %s" PyErr_Format(PyExc_TypeError, "%.400s constructor takes %s"
"%" PY_FORMAT_SIZE_T "d positional argument%s", "%zd positional argument%s",
Py_TYPE(self)->tp_name, Py_TYPE(self)->tp_name,
numfields == 0 ? "" : "either 0 or ", numfields == 0 ? "" : "either 0 or ",
numfields, numfields == 1 ? "" : "s"); numfields, numfields == 1 ? "" : "s");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment