mirror of
https://github.com/python/cpython.git
synced 2025-11-15 08:01:29 +00:00
Whitespace normalization and fold some long lines.
This commit is contained in:
parent
9ad70f9cb0
commit
7766091e04
1 changed files with 19 additions and 20 deletions
|
|
@ -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 *
|
static PyObject *
|
||||||
binary_iop(PyObject *v, PyObject *w, const int iop_slot, const int op_slot,
|
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)
|
if (f != NULL)
|
||||||
return (*f)(v, w);
|
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 *
|
PyObject *
|
||||||
|
|
@ -752,7 +754,8 @@ PyNumber_InPlaceMultiply(PyObject *v, PyObject *w)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
else {
|
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);
|
return (*g)(v, (int)n);
|
||||||
}
|
}
|
||||||
|
|
@ -760,8 +763,6 @@ PyNumber_InPlaceMultiply(PyObject *v, PyObject *w)
|
||||||
NB_SLOT(nb_multiply), "*=");
|
NB_SLOT(nb_multiply), "*=");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *
|
PyObject *
|
||||||
PyNumber_InPlaceRemainder(PyObject *v, PyObject *w)
|
PyNumber_InPlaceRemainder(PyObject *v, PyObject *w)
|
||||||
{
|
{
|
||||||
|
|
@ -776,7 +777,6 @@ PyNumber_InPlaceRemainder(PyObject *v, PyObject *w)
|
||||||
NB_SLOT(nb_remainder), "%=");
|
NB_SLOT(nb_remainder), "%=");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
PyObject *
|
PyObject *
|
||||||
PyNumber_InPlacePower(PyObject *v, PyObject *w, PyObject *z)
|
PyNumber_InPlacePower(PyObject *v, PyObject *w, PyObject *z)
|
||||||
{
|
{
|
||||||
|
|
@ -2050,4 +2050,3 @@ PyIter_Next(PyObject *iter)
|
||||||
PyErr_Clear();
|
PyErr_Clear();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue