From: Raymond Hettinger Date: Sat, 2 Mar 2013 07:20:13 +0000 (-0800) Subject: Remove dependency on dummy_threading (to solve a bootstrap problem). X-Git-Tag: v3.3.1rc1~107 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=409f6630918732eb9c088faf51c8210b6ce08b03;p=thirdparty%2FPython%2Fcpython.git Remove dependency on dummy_threading (to solve a bootstrap problem). --- diff --git a/Lib/functools.py b/Lib/functools.py index 71022e53c8f6..36466f9c1797 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 ################################################################################