Skip to content

Commit 9f68cd1

Browse files
Fix tee_copy
1 parent 68e63dd commit 9f68cd1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/itertoolsmodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -961,6 +961,7 @@ tee_copy(teeobject *to, PyObject *Py_UNUSED(ignored))
961961
newto->dataobj = (teedataobject*)Py_NewRef(to->dataobj);
962962
newto->index = to->index;
963963
newto->weakreflist = NULL;
964+
newto->state = to->state;
964965
PyObject_GC_Track(newto);
965966
return (PyObject *)newto;
966967
}

0 commit comments

Comments
 (0)