]> granicus.if.org Git - python/commitdiff
Complete the xrange-simplification checkins: call PyRange_New() with
authorGuido van Rossum <guido@python.org>
Thu, 5 Jul 2001 14:44:41 +0000 (14:44 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 5 Jul 2001 14:44:41 +0000 (14:44 +0000)
fewer arguments.

Python/bltinmodule.c

index 11d6f4c41cb7234ba5dce0250a6b0ae38b8f74c1..d23bbf3c67ee9ec3a216b4c5eebe2f56b2891aa4 100644 (file)
@@ -1763,7 +1763,7 @@ builtin_xrange(PyObject *self, PyObject *args)
                                "xrange() result has too many items");
                return NULL;
        }
-       return PyRange_New(ilow, n, istep, 1);
+       return PyRange_New(ilow, n, istep);
 }
 
 static char xrange_doc[] =