summaryrefslogtreecommitdiff
path: root/sphinx/util/logging.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/util/logging.py')
-rw-r--r--sphinx/util/logging.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/logging.py b/sphinx/util/logging.py
index 6148a5445..00c12ec4f 100644
--- a/sphinx/util/logging.py
+++ b/sphinx/util/logging.py
@@ -156,8 +156,8 @@ class NewLineStreamHandlerPY2(logging.StreamHandler):
# remove return code forcely when nonl=True
self.stream = StringIO()
super(NewLineStreamHandlerPY2, self).emit(record)
- stream.write(self.stream.getvalue()[:-1]) # type: ignore
- stream.flush() # type: ignore
+ stream.write(self.stream.getvalue()[:-1])
+ stream.flush()
else:
super(NewLineStreamHandlerPY2, self).emit(record)
finally: