[Python-checkins] cpython (merge 3.4 -> default): Closes #21742: Merged fix from 3.4.
vinay.sajip
python-checkins at python.org
Sat Jun 14 11:23:37 CEST 2014
http://hg.python.org/cpython/rev/9913ab26ca6f
changeset: 91174:9913ab26ca6f
parent: 91171:174c30103b57
parent: 91173:6f1f38775991
user: Vinay Sajip <vinay_sajip at yahoo.co.uk>
date: Sat Jun 14 10:23:20 2014 +0100
summary:
Closes #21742: Merged fix from 3.4.
files:
Lib/logging/handlers.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py
--- a/Lib/logging/handlers.py
+++ b/Lib/logging/handlers.py
@@ -463,6 +463,7 @@
# we have an open file handle, clean it up
self.stream.flush()
self.stream.close()
+ self.stream = None # See Issue #21742: _open () might fail.
# open a new file handle and get new stat info from that fd
self.stream = self._open()
self._statstream()
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list