mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-05 20:46:54 +00:00
Open our output file in append mode always
This avoid overwriting portions of our log output when using Flake8 in verbose mode. Closes #193
This commit is contained in:
parent
971dcc16f0
commit
e93aad6043
3 changed files with 10 additions and 4 deletions
|
|
@ -50,7 +50,7 @@ class BaseFormatter(object):
|
|||
This defaults to initializing :attr:`output_fd` if :attr:`filename`
|
||||
"""
|
||||
if self.filename:
|
||||
self.output_fd = open(self.filename, 'w')
|
||||
self.output_fd = open(self.filename, 'a')
|
||||
|
||||
def handle(self, error):
|
||||
"""Handle an error reported by Flake8.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue