mirror of https://github.com/python/cpython
d is the correct format string
This commit is contained in:
parent
b6a955672f
commit
94a730540a
|
@ -670,7 +670,7 @@ deque_repr(PyObject *deque)
|
|||
return NULL;
|
||||
}
|
||||
if (((dequeobject *)deque)->maxlen != -1)
|
||||
fmt = PyString_FromFormat("deque(%%r, maxlen=%" PY_FORMAT_SIZE_T "i)",
|
||||
fmt = PyString_FromFormat("deque(%%r, maxlen=%" PY_FORMAT_SIZE_T "d)",
|
||||
((dequeobject *)deque)->maxlen);
|
||||
else
|
||||
fmt = PyString_FromString("deque(%r)");
|
||||
|
|
Loading…
Reference in New Issue