add sys prefix
This commit is contained in:
parent
bbccbfd6b8
commit
bbcd1eb64c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue