mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #11444: Merge fix from 3.2.
This commit is contained in:
commit
df309939e5
1 changed files with 3 additions and 0 deletions
|
@ -1793,6 +1793,7 @@ def shutdown(handlerList=_handlerList):
|
|||
h = wr()
|
||||
if h:
|
||||
try:
|
||||
h.acquire()
|
||||
h.flush()
|
||||
h.close()
|
||||
except (IOError, ValueError):
|
||||
|
@ -1801,6 +1802,8 @@ def shutdown(handlerList=_handlerList):
|
|||
# references to them are still around at
|
||||
# application exit.
|
||||
pass
|
||||
finally:
|
||||
h.release()
|
||||
except:
|
||||
if raiseExceptions:
|
||||
raise
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue