Skip to content

Commit

Permalink
pythongh-101892 : Updated Cython/objects/iterobject.c Line 217
Browse files Browse the repository at this point in the history
Updated Cython/objects/iterobject.c Line 217
  • Loading branch information
workingpayload committed Feb 14, 2023
1 parent 8be8101 commit de17a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Objects/iterobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ calliter_iternext(calliterobject *it)
}

result = _PyObject_CallNoArgs(it->it_callable);
if (result != NULL) {
if (result != NULL && it->it_callable != NULL) {
int ok;

ok = PyObject_RichCompareBool(it->it_sentinel, result, Py_EQ);
Expand Down

0 comments on commit de17a82

Please sign in to comment.