mirror of
https://github.com/PyCQA/flake8.git
synced 2026-05-06 02:04:26 +00:00
Print the line not the output file object
This commit is contained in:
parent
56976671d0
commit
57174a0743
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ class BaseFormatter(object):
|
||||||
if self.output_fd is not None:
|
if self.output_fd is not None:
|
||||||
self.output_fd.write(line + self.newline)
|
self.output_fd.write(line + self.newline)
|
||||||
else:
|
else:
|
||||||
print(self.output_fd)
|
print(line)
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
"""Clean up after reporting is finished."""
|
"""Clean up after reporting is finished."""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue