Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 794568f

Browse files
committed
Merge
2 parents bf0428e + 409f663 commit 794568f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Lib/functools.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
try:
2020
from _thread import RLock
2121
except:
22-
from dummy_threading import RLock
22+
class RLock:
23+
'Dummy reentrant lock'
24+
def __enter__(self): pass
25+
def __exit__(self, exctype, excinst, exctb): pass
2326

2427

2528
################################################################################

0 commit comments

Comments
 (0)