mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Remove dependency on dummy_threading (to solve a bootstrap problem).
This commit is contained in:
parent
aba4581ce3
commit
409f663091
1 changed files with 4 additions and 1 deletions
|
@ -16,7 +16,10 @@ from collections import namedtuple
|
|||
try:
|
||||
from _thread import RLock
|
||||
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