There was an error while loading. Please reload this page.
1 parent 44bc1b2 commit 1843290Copy full SHA for 1843290
1 file changed
Python/sysmodule.c
@@ -3508,9 +3508,6 @@ _PySys_SetFlagObj(Py_ssize_t pos, PyObject *value)
3508
if (i != pos) {
3509
PyObject *old_value;
3510
old_value = PyStructSequence_GET_ITEM(old_flags, i); // borrowed ref
3511
- if (old_value == NULL) {
3512
- goto error;
3513
- }
3514
sys_set_flag(new_flags, i, old_value);
3515
}
3516
else {
0 commit comments