mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Parse to the correct datatype.
This commit is contained in:
parent
33fcf9db74
commit
723ba3049a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue