Commits

Vinay Sajip committed 1abc219

Reverted back to r67866.

  • Participants
  • Parent commits 9b83bfe
  • Branches 2.4

Comments (0)

Files changed (2)

File Lib/logging/__init__.py

 #the lock would already have been acquired - so we need an RLock.
 #The same argument applies to Loggers and Manager.loggerDict.
 #
-if thread:
-    _lock = threading.RLock()
-else:
-    _lock = None
+_lock = None
 
 def _acquireLock():
     """
 
     This should be released with _releaseLock().
     """
+    global _lock
+    if (not _lock) and thread:
+        _lock = threading.RLock()
     if _lock:
         _lock.acquire()
 
 
 *Release date: XX-XXX-2009*
 
-Library
--------
-
-- Issue #7403: logging: Fixed possible race condition in lock creation.
-
 
 What's New in Python 2.4.6?
 ===========================