summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/functools.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/functools.py b/Lib/functools.py
index c71d714..a019268 100644
--- a/Lib/functools.py
+++ b/Lib/functools.py
@@ -19,7 +19,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
################################################################################