commit | ee145ecc5fdcbb23152407fc76dac8f6aa886c3f | [log] [tgz] |
---|---|---|
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | Tue Mar 08 22:47:18 2011 +0000 |
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | Tue Mar 08 22:47:18 2011 +0000 |
tree | ef58cc50d0ea1e505cb79aafe28deddee589e289 | |
parent | 9e1ed47e91ceadc961ae58e2179b324f085d54e5 [diff] | |
parent | f4d0af460a279859b75c11500f14d14a1b29ee79 [diff] |
Issue #11444: Merge fix from 2.6.
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 2f081a0..aaad898 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py
@@ -1627,6 +1627,7 @@ h = wr() if h: try: + h.acquire() h.flush() h.close() except (IOError, ValueError): @@ -1635,6 +1636,8 @@ # references to them are still around at # application exit. pass + finally: + h.release() except: if raiseExceptions: raise