diff options
| author | Ian Stapleton Cordasco <graffatcolmingov@gmail.com> | 2018-01-01 00:57:09 +0000 |
|---|---|---|
| committer | Ian Stapleton Cordasco <graffatcolmingov@gmail.com> | 2018-01-01 00:57:09 +0000 |
| commit | 6381d86f00f4e976914c1fa97e2a6682bed5fcc2 (patch) | |
| tree | a5f02ba883432b5843a9383630f65998d5b052ef /src | |
| parent | 0c7de6df55ee36cf6b40ef5f2b4c346dd68ee605 (diff) | |
| parent | 49f0fbcf1ee5cfe724a3a6d8658e404627c55e98 (diff) | |
| download | flake8-6381d86f00f4e976914c1fa97e2a6682bed5fcc2.tar.gz | |
Merge branch 'formatter-print-observe-newline' into 'master'
Respect a formatter's newline setting when printing
See merge request pycqa/flake8!222
Diffstat (limited to 'src')
| -rw-r--r-- | src/flake8/formatting/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flake8/formatting/base.py b/src/flake8/formatting/base.py index c4c67d5..1443e4c 100644 --- a/src/flake8/formatting/base.py +++ b/src/flake8/formatting/base.py @@ -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. |
