We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fed7db7 commit 4939083Copy full SHA for 4939083
Modules/itertoolsmodule.c
@@ -544,7 +544,6 @@ groupby_next(PyObject *op)
544
else if (gbo->tgtkey == NULL)
545
break;
546
else {
547
- int rcmp;
548
549
/* A user-defined __eq__ can re-enter groupby and advance the iterator,
550
mutating gbo->tgtkey / gbo->currkey while we are comparing them.
@@ -556,7 +555,7 @@ groupby_next(PyObject *op)
556
555
Py_INCREF(tgtkey);
557
Py_INCREF(currkey);
558
559
- rcmp = PyObject_RichCompareBool(tgtkey, currkey, Py_EQ);
+ int rcmp = PyObject_RichCompareBool(tgtkey, currkey, Py_EQ);
560
561
Py_DECREF(tgtkey);
562
Py_DECREF(currkey);
0 commit comments