From cadd5b6b58477658d516d03d109a03b977fc28bd Mon Sep 17 00:00:00 2001 From: Thomas Wouters Date: Fri, 1 Sep 2000 07:53:25 +0000 Subject: [PATCH] Fix grouping, again. This time properly :-) Sorry, guys. --- Objects/abstract.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Objects/abstract.c b/Objects/abstract.c index abfaa5ecfd..4e9ed96a60 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -813,12 +813,12 @@ PyNumber_InPlaceAdd(PyObject *v, PyObject *w) PyNumber_Add, 0) <= 0) return x; } - else if ((HASINPLACE(v) + else if (HASINPLACE(v) && ((v->ob_type->tp_as_sequence != NULL && (f = v->ob_type->tp_as_sequence->sq_inplace_concat) - != NULL))) + != NULL) || (v->ob_type->tp_as_number != NULL && - (f = v->ob_type->tp_as_number->nb_inplace_add) != NULL)) + (f = v->ob_type->tp_as_number->nb_inplace_add) != NULL))) return (*f)(v, w); BINOP(v, w, "__add__", "__radd__", PyNumber_Add); -- 2.49.0