mirror of https://github.com/python/cpython.git
Closes #21742: Merged fix from 3.4.
This commit is contained in:
commit
f8e9ba0fb9
|
@ -463,6 +463,7 @@ def emit(self, record):
|
|||
# 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()
|
||||
|
|
Loading…
Reference in New Issue