From: Raymond Hettinger Date: Thu, 24 Jul 2008 00:53:49 +0000 (+0000) Subject: Parse to the correct datatype. X-Git-Tag: v2.6b3~241 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=723ba3049afcdcbc90aa0e9cc6a0873080a8b93b;p=thirdparty%2FPython%2Fcpython.git Parse to the correct datatype. --- diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c index 9d6b6cd4c68a..4517811479d4 100644 --- a/Modules/_collectionsmodule.c +++ b/Modules/_collectionsmodule.c @@ -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;