From 409f6630918732eb9c088faf51c8210b6ce08b03 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Fri, 1 Mar 2013 23:20:13 -0800 Subject: [PATCH] Remove dependency on dummy_threading (to solve a bootstrap problem). --- Lib/functools.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/functools.py b/Lib/functools.py index 71022e53c8f..36466f9c179 100644 --- 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 ################################################################################