diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-07-29 17:18:47 -0500 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-07-29 17:18:47 -0500 |
| commit | f88fce950941e86f42927bd768cf31dc2e516cdd (patch) | |
| tree | 87ba586809549fc772471de80f37bb771e59e9e2 /src/flake8/formatting/base.py | |
| parent | 20c619f649978ad99be7e43aa57e71e38d9ae9d2 (diff) | |
| download | flake8-bug/193.tar.gz | |
Open our output file in append mode alwaysbug/193
This avoid overwriting portions of our log output when using Flake8
in verbose mode.
Closes #193
Diffstat (limited to 'src/flake8/formatting/base.py')
| -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 336bf50..97c60e1 100644 --- a/src/flake8/formatting/base.py +++ b/src/flake8/formatting/base.py @@ -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. |
