add sys prefix

This commit is contained in:
Benjamin Peterson 2009-06-24 02:29:57 +00:00
parent bbccbfd6b8
commit bbcd1eb64c
1 changed files with 3 additions and 3 deletions

View 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;
}