Mercurial > cpython-lru_cache-weakref
diff Modules/itertoolsmodule.c @ 54839:6a31c4e0dfc1
add sys prefix
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Wed, 24 Jun 2009 02:29:57 +0000 |
| parents | d16294697658 |
| children | 658eb58d2e68 |
line wrap: on
line diff
--- a/Modules/itertoolsmodule.c Tue Jun 23 22:24:13 2009 +0000 +++ b/Modules/itertoolsmodule.c Wed Jun 24 02:29:57 2009 +0000 @@ -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; }
