mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Merge
This commit is contained in:
commit
794568f0ad
1 changed files with 4 additions and 1 deletions
|
|
@ -19,7 +19,10 @@ from collections import namedtuple
|
||||||
try:
|
try:
|
||||||
from _thread import RLock
|
from _thread import RLock
|
||||||
except:
|
except:
|
||||||
from dummy_threading import RLock
|
class RLock:
|
||||||
|
'Dummy reentrant lock'
|
||||||
|
def __enter__(self): pass
|
||||||
|
def __exit__(self, exctype, excinst, exctb): pass
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue