Skip to content

Commit 779be6e

Browse files
committed
Restore assertion.
1 parent cad0404 commit 779be6e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Python/pystate.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,8 @@ unbind_gilstate_tstate(PyThreadState *tstate)
268268
assert(tstate_is_bound(tstate));
269269
// XXX assert(!tstate->_status.active);
270270
assert(tstate->_status.bound_gilstate);
271-
if (tstate == gilstate_get()) {
272-
gilstate_clear();
273-
}
271+
assert(tstate == gilstate_get());
272+
gilstate_clear();
274273
tstate->_status.bound_gilstate = 0;
275274
}
276275

0 commit comments

Comments
 (0)