[Python-checkins] (merge 3.2 -> default): Issue #11444: Merge fix from 3.2.

vinay.sajip python-checkins at python.org
Tue Mar 8 23:54:43 CET 2011


http://hg.python.org/cpython/rev/1947cca7f583
changeset:   68337:1947cca7f583
parent:      68332:7f605fa1688d
parent:      68336:39469645857a
user:        Vinay Sajip <vinay_sajip at yahoo.co.uk>
date:        Tue Mar 08 22:54:11 2011 +0000
summary:
  Issue #11444: Merge fix from 3.2.

files:
  

diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -1793,6 +1793,7 @@
             h = wr()
             if h:
                 try:
+                    h.acquire()
                     h.flush()
                     h.close()
                 except (IOError, ValueError):
@@ -1801,6 +1802,8 @@
                     # references to them are still around at
                     # application exit.
                     pass
+                finally:
+                    h.release()
         except:
             if raiseExceptions:
                 raise

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


More information about the Python-checkins mailing list