diff options
| author | Benjamin Peterson <benjamin@python.org> | 2009-06-24 02:29:57 (GMT) |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2009-06-24 02:29:57 (GMT) |
| commit | bbcd1eb64c3a6575b6e0a74d8e4979aa96177e90 (patch) | |
| tree | a7dd0653c7d9416679b890380e123b50aac52c42 | |
| parent | bbccbfd6b89624800f4d8477207e67a98845c944 (diff) | |
| download | cpython-bbcd1eb64c3a6575b6e0a74d8e4979aa96177e90.zip cpython-bbcd1eb64c3a6575b6e0a74d8e4979aa96177e90.tar.gz cpython-bbcd1eb64c3a6575b6e0a74d8e4979aa96177e90.tar.bz2 | |
add sys prefix
| -rw-r--r-- | Modules/itertoolsmodule.c | 6 |
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; } |
