]> granicus.if.org Git - python/commitdiff
Parse to the correct datatype.
authorRaymond Hettinger <python@rcn.com>
Thu, 24 Jul 2008 00:53:49 +0000 (00:53 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 24 Jul 2008 00:53:49 +0000 (00:53 +0000)
Modules/_collectionsmodule.c

index 9d6b6cd4c68ab0172bf30a80910cd96402e1dd8b..4517811479d4a9c9bad784139f0567f5b3c0f6f8 100644 (file)
@@ -394,7 +394,7 @@ deque_rotate(dequeobject *deque, PyObject *args)
 {
        Py_ssize_t n=1;
 
-       if (!PyArg_ParseTuple(args, "|i:rotate", &n))
+       if (!PyArg_ParseTuple(args, "|n:rotate", &n))
                return NULL;
        if (_deque_rotate(deque, n) == 0)
                Py_RETURN_NONE;