Skip to content

Commit cf3d528

Browse files
Ditto
1 parent d45d438 commit cf3d528

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Modules/itertoolsmodule.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1648,10 +1648,10 @@ islice_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
16481648
isliceobject *lz;
16491649

16501650
itertools_state *st = find_state_by_type(type);
1651-
if ((type == st->islice_type || type->tp_init == st->islice_type->tp_init)
1652-
&& !_PyArg_NoKeywords("islice", kwds)) {
1651+
PyTypeObject *islice_type = st->islice_type;
1652+
if ((type == islice_type || type->tp_init == islice_type->tp_init) &&
1653+
!_PyArg_NoKeywords("islice", kwds))
16531654
return NULL;
1654-
}
16551655

16561656
if (!PyArg_UnpackTuple(args, "islice", 2, 4, &seq, &a1, &a2, &a3))
16571657
return NULL;

0 commit comments

Comments
 (0)