diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 29a7d464decf984..2fa09a67131661c 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -982,8 +982,8 @@ def emit(self, record): try: msg = self.format(record) stream = self.stream - stream.write(msg) - stream.write(self.terminator) + # issue 35046: merged two stream.writes into one. + stream.write(msg + self.terminator) self.flush() except Exception: self.handleError(record)