diff options
| author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-12-16 14:51:55 +0900 |
|---|---|---|
| committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-12-16 14:52:20 +0900 |
| commit | 7cabd6cbb053965e1930b53c27d596fd1a52dd78 (patch) | |
| tree | a600993c9975ef8d984a875cd9841cb11265ebd9 /sphinx/util/logging.py | |
| parent | b131c33af5ea49c6416026050725a0121c8991f3 (diff) | |
| download | sphinx-git-7cabd6cbb053965e1930b53c27d596fd1a52dd78.tar.gz | |
Fix mypy violations
Diffstat (limited to 'sphinx/util/logging.py')
| -rw-r--r-- | sphinx/util/logging.py | 4 |
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: |
