[Python-checkins] cpython (3.3): Remove dependency on dummy_threading (to solve a bootstrap problem).

raymond.hettinger python-checkins at python.org
Sat Mar 2 08:28:00 CET 2013


http://hg.python.org/cpython/rev/e9732c25a018
changeset:   82450:e9732c25a018
branch:      3.3
parent:      82448:01bfd48efef5
user:        Raymond Hettinger <python at rcn.com>
date:        Fri Mar 01 23:20:13 2013 -0800
summary:
  Remove dependency on dummy_threading (to solve a bootstrap problem).

files:
  Lib/functools.py |  5 ++++-
  1 files changed, 4 insertions(+), 1 deletions(-)


diff --git a/Lib/functools.py b/Lib/functools.py
--- a/Lib/functools.py
+++ b/Lib/functools.py
@@ -16,7 +16,10 @@
 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
 
 
 ################################################################################

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list