summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2013-03-02 07:20:13 (GMT)
committerRaymond Hettinger <python@rcn.com>2013-03-02 07:20:13 (GMT)
commit409f6630918732eb9c088faf51c8210b6ce08b03 (patch)
tree74782b17a7726d626fe2bee56a3146279ae63d30 /Lib
parentaba4581ce3434dc24095d7203e2e039e0e3aa431 (diff)
downloadcpython-409f6630918732eb9c088faf51c8210b6ce08b03.zip
cpython-409f6630918732eb9c088faf51c8210b6ce08b03.tar.gz
cpython-409f6630918732eb9c088faf51c8210b6ce08b03.tar.bz2
Remove dependency on dummy_threading (to solve a bootstrap problem).
Diffstat (limited to 'Lib')
-rw-r--r--Lib/functools.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/functools.py b/Lib/functools.py
index 71022e5..36466f9 100644
--- a/Lib/functools.py
+++ b/Lib/functools.py
@@ -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
################################################################################