Commit 453d9520 authored by Benjamin Peterson's avatar Benjamin Peterson

add sys prefix

parent ac7ea2a2
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment