commit | 723ba3049afcdcbc90aa0e9cc6a0873080a8b93b | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Thu Jul 24 00:53:49 2008 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Thu Jul 24 00:53:49 2008 +0000 |
tree | 14c682f5378b56d0e713d92057b30f1a590f1303 | |
parent | 33fcf9db74f6bb04e0d432da631dd90c1fb7ec59 [diff] [blame] |
Parse to the correct datatype.
diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c index 9d6b6cd..4517811 100644 --- a/Modules/_collectionsmodule.c +++ b/Modules/_collectionsmodule.c
@@ -394,7 +394,7 @@ { 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;