commit | ce817cb36d7e8764b5ddecadea4b02276879d631 | [log] [tgz] |
---|---|---|
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | Sat Jun 14 10:19:54 2014 +0100 |
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | Sat Jun 14 10:19:54 2014 +0100 |
tree | ecec08833d579cae9738a1504331654453621a83 | |
parent | ec92b4a9fa54ec454c66b78c3abe81f7fef07b19 [diff] |
Issue #21742: Set stream to None after closing.
diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py index 30ad036..b7bf931 100644 --- a/Lib/logging/handlers.py +++ b/Lib/logging/handlers.py
@@ -423,6 +423,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()