Commit 0ee3f338 authored by gsamain's avatar gsamain Committed by Xavier Thompson

with unlocked statement: make was_rlocked flag aware of write lock presence

parent 0061429b
......@@ -8448,8 +8448,8 @@ class LockCypclassNode(StatNode):
# We need to save states because in case of 'with unlocked' statement,
# we must know which lock has to be restored after the with body.
self.was_rlocked = is_rlocked
self.was_wlocked = is_wlocked
self.was_rlocked = is_rlocked and not is_wlocked
tracked_state = self.obj.tracked_state
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment