diff options
Diffstat (limited to 'src/flake8/api')
| -rw-r--r-- | src/flake8/api/legacy.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/flake8/api/legacy.py b/src/flake8/api/legacy.py index 8c7d337..1277460 100644 --- a/src/flake8/api/legacy.py +++ b/src/flake8/api/legacy.py @@ -120,6 +120,7 @@ class StyleGuide(object): if not issubclass(reporter, formatter.BaseFormatter): raise ValueError("Report should be subclass of " "flake8.formatter.BaseFormatter.") + self._application.formatter = None self._application.make_formatter(reporter) self._application.guide = None # NOTE(sigmavirus24): This isn't the intended use of |
