Kaydet (Commit) bbcd1eb6 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

add sys prefix

üst bbccbfd6
...@@ -1137,7 +1137,7 @@ islice_new(PyTypeObject *type, PyObject *args, PyObject *kwds) ...@@ -1137,7 +1137,7 @@ islice_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
if (PyErr_Occurred()) if (PyErr_Occurred())
PyErr_Clear(); PyErr_Clear();
PyErr_SetString(PyExc_ValueError, 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; return NULL;
} }
} }
...@@ -1152,14 +1152,14 @@ islice_new(PyTypeObject *type, PyObject *args, PyObject *kwds) ...@@ -1152,14 +1152,14 @@ islice_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
if (PyErr_Occurred()) if (PyErr_Occurred())
PyErr_Clear(); PyErr_Clear();
PyErr_SetString(PyExc_ValueError, 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; return NULL;
} }
} }
} }
if (start<0 || stop<-1) { if (start<0 || stop<-1) {
PyErr_SetString(PyExc_ValueError, 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; 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