Skip to content

Commit b2ef863

Browse files
committed
Address comments
1 parent dc4eaa6 commit b2ef863

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Objects/setobject.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,11 +1121,7 @@ setiter_iternext(PyObject *self)
11211121
return NULL;
11221122
}
11231123

1124-
#ifdef Py_GIL_DISABLED
11251124
Py_BEGIN_CRITICAL_SECTION2(self, so);
1126-
#else
1127-
Py_BEGIN_CRITICAL_SECTION(so);
1128-
#endif
11291125

11301126
i = si->si_pos;
11311127
#ifdef Py_GIL_DISABLED
@@ -1158,7 +1154,7 @@ setiter_iternext(PyObject *self)
11581154
Py_END_CRITICAL_SECTION2();
11591155
return key;
11601156
#else
1161-
Py_END_CRITICAL_SECTION();
1157+
Py_END_CRITICAL_SECTION2();
11621158

11631159
if (key == NULL) {
11641160
/* exhausted */

0 commit comments

Comments
 (0)