Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Let NULL error flow through the return
  • Loading branch information
rhettinger committed Oct 19, 2022
commit 646630efe3f69ef626d263162de684f1b0e6f7a2
3 changes: 0 additions & 3 deletions Modules/itertoolsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,6 @@ batched_next(batchedobject *bo)
if (i < bo->batch_size) {
PyObject *short_list = PyList_GetSlice(result, 0, i);
Py_SETREF(result, short_list);
if (result == NULL) {
return NULL;
}
}
return result;
}
Expand Down