mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
add sys prefix
This commit is contained in:
parent
bbccbfd6b8
commit
bbcd1eb64c
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue