Skip to content

Commit d6ad8f8

Browse files
committed
fix bug in _dummy_thread.py that was introduced with CPython 3.7.4
1 parent 655f139 commit d6ad8f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graalpython/lib-python/3/_dummy_thread.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ def acquire(self, waitflag=None, timeout=-1):
169169
self._levels += 1
170170
return locked
171171

172+
__enter__ = acquire
173+
172174
def release(self):
173175
"""Release needs to be called once for every call to acquire().
174176
"""

0 commit comments

Comments
 (0)