Skip to content

Commit 4939083

Browse files
Move comment before declarations and inline rcmp
1 parent fed7db7 commit 4939083

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Modules/itertoolsmodule.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,6 @@ groupby_next(PyObject *op)
544544
else if (gbo->tgtkey == NULL)
545545
break;
546546
else {
547-
int rcmp;
548547

549548
/* A user-defined __eq__ can re-enter groupby and advance the iterator,
550549
mutating gbo->tgtkey / gbo->currkey while we are comparing them.
@@ -556,7 +555,7 @@ groupby_next(PyObject *op)
556555
Py_INCREF(tgtkey);
557556
Py_INCREF(currkey);
558557

559-
rcmp = PyObject_RichCompareBool(tgtkey, currkey, Py_EQ);
558+
int rcmp = PyObject_RichCompareBool(tgtkey, currkey, Py_EQ);
560559

561560
Py_DECREF(tgtkey);
562561
Py_DECREF(currkey);

0 commit comments

Comments
 (0)