mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Neaten-up whitespace, vertical alignment, and line-wrapping.
This commit is contained in:
parent
b5244a3fe5
commit
a6a2d44dc7
1 changed files with 17 additions and 15 deletions
|
@ -1407,7 +1407,8 @@ 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 <= sys.maxsize.");
|
||||
"Stop argument for islice() must be None or "
|
||||
"an integer: 0 <= x <= sys.maxsize.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -1422,14 +1423,16 @@ 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 <= sys.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 <= sys.maxsize.");
|
||||
"Indices for islice() must be None or "
|
||||
"an integer: 0 <= x <= sys.maxsize.");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -3779,8 +3782,7 @@ filterfalse_next(filterfalseobject *lz)
|
|||
ok = PyObject_IsTrue(item);
|
||||
} else {
|
||||
PyObject *good;
|
||||
good = PyObject_CallFunctionObjArgs(lz->func,
|
||||
item, NULL);
|
||||
good = PyObject_CallFunctionObjArgs(lz->func, item, NULL);
|
||||
if (good == NULL) {
|
||||
Py_DECREF(item);
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue