]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove dependency on dummy_threading (to solve a bootstrap problem).
authorRaymond Hettinger <python@rcn.com>
Sat, 2 Mar 2013 07:20:13 +0000 (23:20 -0800)
committerRaymond Hettinger <python@rcn.com>
Sat, 2 Mar 2013 07:20:13 +0000 (23:20 -0800)
Lib/functools.py

index 71022e53c8f62c235dfadef20fba932a891f923a..36466f9c1797e4537aac9a49eab51fb2ce991493 100644 (file)
@@ -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
 
 
 ################################################################################