[Python-checkins] r65210 - python/trunk/Modules/_collectionsmodule.c

raymond.hettinger python-checkins at python.org
Thu Jul 24 02:53:49 CEST 2008


Author: raymond.hettinger
Date: Thu Jul 24 02:53:49 2008
New Revision: 65210

Log:
Parse to the correct datatype.

Modified:
   python/trunk/Modules/_collectionsmodule.c

Modified: python/trunk/Modules/_collectionsmodule.c
==============================================================================
--- python/trunk/Modules/_collectionsmodule.c	(original)
+++ python/trunk/Modules/_collectionsmodule.c	Thu Jul 24 02:53:49 2008
@@ -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;


More information about the Python-checkins mailing list