Skip to content

Commit ed58cc0

Browse files
Ditto again
1 parent cf3d528 commit ed58cc0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Modules/itertoolsmodule.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2013,8 +2013,9 @@ chain_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
20132013
{
20142014
PyObject *source;
20152015

2016-
itertools_state *st = find_state_by_type(type);
2017-
if ((type == st->chain_type || type->tp_init == st->chain_type->tp_init)
2016+
itertools_state *state = find_state_by_type(type);
2017+
PyTypeObject *chain_type = state->chain_type;
2018+
if ((type == chain_type || type->tp_init == chain_type->tp_init)
20182019
&& !_PyArg_NoKeywords("chain", kwds))
20192020
{
20202021
return NULL;

0 commit comments

Comments
 (0)