Commit b7d62050 authored by Josh Snyder's avatar Josh Snyder Committed by Vinay Sajip

bpo-35046: do only one system call per line (logging.StreamHandler) (GH-10042)

parent 3b0047d8
......@@ -1091,8 +1091,8 @@ class StreamHandler(Handler):
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment