Whitespace normalization and fold some long lines.

This commit is contained in:
Guido van Rossum 2002-04-16 16:32:50 +00:00
parent 9ad70f9cb0
commit 7766091e04

View file

@ -670,7 +670,8 @@ PyNumber_Power(PyObject *v, PyObject *w, PyObject *z)
*/
#define HASINPLACE(t) PyType_HasFeature((t)->ob_type, Py_TPFLAGS_HAVE_INPLACEOPS)
#define HASINPLACE(t) \
PyType_HasFeature((t)->ob_type, Py_TPFLAGS_HAVE_INPLACEOPS)
static PyObject *
binary_iop(PyObject *v, PyObject *w, const int iop_slot, const int op_slot,
@ -733,7 +734,8 @@ PyNumber_InPlaceAdd(PyObject *v, PyObject *w)
if (f != NULL)
return (*f)(v, w);
}
return binary_iop(v, w, NB_SLOT(nb_inplace_add), NB_SLOT(nb_add), "+=");
return binary_iop(v, w, NB_SLOT(nb_inplace_add),
NB_SLOT(nb_add), "+=");
}
PyObject *
@ -752,7 +754,8 @@ PyNumber_InPlaceMultiply(PyObject *v, PyObject *w)
return NULL;
}
else {
return type_error("can't multiply sequence to non-int");
return type_error(
"can't multiply sequence to non-int");
}
return (*g)(v, (int)n);
}
@ -760,8 +763,6 @@ PyNumber_InPlaceMultiply(PyObject *v, PyObject *w)
NB_SLOT(nb_multiply), "*=");
}
PyObject *
PyNumber_InPlaceRemainder(PyObject *v, PyObject *w)
{
@ -776,7 +777,6 @@ PyNumber_InPlaceRemainder(PyObject *v, PyObject *w)
NB_SLOT(nb_remainder), "%=");
}
PyObject *
PyNumber_InPlacePower(PyObject *v, PyObject *w, PyObject *z)
{
@ -2050,4 +2050,3 @@ PyIter_Next(PyObject *iter)
PyErr_Clear();
return result;
}