]> granicus.if.org Git - python/commitdiff
add sys prefix
authorBenjamin Peterson <benjamin@python.org>
Wed, 24 Jun 2009 02:29:57 +0000 (02:29 +0000)
committerBenjamin Peterson <benjamin@python.org>
Wed, 24 Jun 2009 02:29:57 +0000 (02:29 +0000)
Modules/itertoolsmodule.c

index 732bcd9fc2099d10179636caa5696db40cd4a705..12144d0c35c6189e840613941b55c3054d119b4e 100644 (file)
@@ -1137,7 +1137,7 @@ islice_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
                                if (PyErr_Occurred())
                                        PyErr_Clear();
                                PyErr_SetString(PyExc_ValueError,
-                                  "Stop argument for islice() must be None or an integer: 0 <= x <= maxsize.");
+                                  "Stop argument for islice() must be None or an integer: 0 <= x <= sys.maxsize.");
                                return NULL;
                        }
                }
@@ -1152,14 +1152,14 @@ islice_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
                                if (PyErr_Occurred())
                                        PyErr_Clear();
                                PyErr_SetString(PyExc_ValueError,
-                                  "Stop argument for islice() must be None or an integer: 0 <= x <= maxsize.");
+                                  "Stop argument for islice() must be None or an integer: 0 <= x <= sys.maxsize.");
                                return NULL;
                        }
                }
        }
        if (start<0 || stop<-1) {
                PyErr_SetString(PyExc_ValueError,
-                  "Indices for islice() must be None or an integer: 0 <= x <= maxsize.");
+                  "Indices for islice() must be None or an integer: 0 <= x <= sys.maxsize.");
                return NULL;
        }