Neaten-up whitespace, vertical alignment, and line-wrapping.

This commit is contained in:
Raymond Hettinger 2015-08-16 14:38:07 -07:00
parent b5244a3fe5
commit a6a2d44dc7

View file

@ -1407,7 +1407,8 @@ 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 <= sys.maxsize."); "Stop argument for islice() must be None or "
"an integer: 0 <= x <= sys.maxsize.");
return NULL; return NULL;
} }
} }
@ -1422,14 +1423,16 @@ 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 <= sys.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 <= sys.maxsize."); "Indices for islice() must be None or "
"an integer: 0 <= x <= sys.maxsize.");
return NULL; return NULL;
} }
@ -3779,8 +3782,7 @@ filterfalse_next(filterfalseobject *lz)
ok = PyObject_IsTrue(item); ok = PyObject_IsTrue(item);
} else { } else {
PyObject *good; PyObject *good;
good = PyObject_CallFunctionObjArgs(lz->func, good = PyObject_CallFunctionObjArgs(lz->func, item, NULL);
item, NULL);
if (good == NULL) { if (good == NULL) {
Py_DECREF(item); Py_DECREF(item);
return NULL; return NULL;