mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Support %zd in PyErr_Format and PyString_FromFormat.
This commit is contained in:
parent
26efe402c2
commit
2c95cc6d72
8 changed files with 35 additions and 19 deletions
|
@ -1148,7 +1148,7 @@ PyDict_MergeFromSeq2(PyObject *d, PyObject *seq2, int override)
|
|||
if (n != 2) {
|
||||
PyErr_Format(PyExc_ValueError,
|
||||
"dictionary update sequence element #%d "
|
||||
"has length %ld; 2 is required",
|
||||
"has length %zd; 2 is required",
|
||||
i, (long)n);
|
||||
goto Fail;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue