[Python-checkins] r73542 - python/branches/py3k/Modules/itertoolsmodule.c
benjamin.peterson
python-checkins at python.org
Wed Jun 24 04:29:58 CEST 2009
Author: benjamin.peterson
Date: Wed Jun 24 04:29:57 2009
New Revision: 73542
Log:
add sys prefix
Modified:
python/branches/py3k/Modules/itertoolsmodule.c
Modified: python/branches/py3k/Modules/itertoolsmodule.c
==============================================================================
--- python/branches/py3k/Modules/itertoolsmodule.c (original)
+++ python/branches/py3k/Modules/itertoolsmodule.c Wed Jun 24 04:29:57 2009
@@ -1137,7 +1137,7 @@
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 @@
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;
}
More information about the Python-checkins
mailing list