mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-02 11:56:52 +00:00
Merge branch 'formatter-print-observe-newline' into 'master'
Respect a formatter's newline setting when printing See merge request pycqa/flake8!222
This commit is contained in:
commit
6381d86f00
2 changed files with 5 additions and 5 deletions
|
|
@ -172,7 +172,7 @@ class BaseFormatter(object):
|
|||
if self.output_fd is not None:
|
||||
self.output_fd.write(output + self.newline)
|
||||
if self.output_fd is None or self.options.tee:
|
||||
print(output)
|
||||
print(output, end=self.newline)
|
||||
|
||||
def write(self, line, source):
|
||||
"""Write the line either to the output file or stdout.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue