summaryrefslogtreecommitdiffstats
path: root/Modules/itertoolsmodule.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-06-24 02:29:57 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-06-24 02:29:57 (GMT)
commitbbcd1eb64c3a6575b6e0a74d8e4979aa96177e90 (patch)
treea7dd0653c7d9416679b890380e123b50aac52c42 /Modules/itertoolsmodule.c
parentbbccbfd6b89624800f4d8477207e67a98845c944 (diff)
downloadcpython-bbcd1eb64c3a6575b6e0a74d8e4979aa96177e90.zip
cpython-bbcd1eb64c3a6575b6e0a74d8e4979aa96177e90.tar.gz
cpython-bbcd1eb64c3a6575b6e0a74d8e4979aa96177e90.tar.bz2
add sys prefix
Diffstat (limited to 'Modules/itertoolsmodule.c')
-rw-r--r--Modules/itertoolsmodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c
index 732bcd9..12144d0 100644
--- a/Modules/itertoolsmodule.c
+++ b/Modules/itertoolsmodule.c
@@ -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;
}