]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
d is the correct format string
authorChristian Heimes <christian@cheimes.de>
Fri, 22 Aug 2008 21:23:47 +0000 (21:23 +0000)
committerChristian Heimes <christian@cheimes.de>
Fri, 22 Aug 2008 21:23:47 +0000 (21:23 +0000)
Modules/_collectionsmodule.c

index 82bfb14e69dd7a3fd034ba98bb48b1406d534499..d6dcffd413358c3f4e7f9bd75dfc21ff5414c06a 100644 (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)");