diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index d17809153fe..b3412fc4638 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -783,6 +783,10 @@ class FileHandler(StreamHandler): StreamHandler.close(self) def _open(self): + """ + Open the current base file with the (original) mode and encoding. + Return the resulting stream. + """ if self.encoding is None: stream = open(self.baseFilename, self.mode) else: