d is the correct format string

This commit is contained in:
Christian Heimes 2008-08-22 21:23:47 +00:00
parent b6a955672f
commit 94a730540a
1 changed files with 1 additions and 1 deletions

View File

@ -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)");