diff options
Diffstat (limited to 'pylint/lint/pylinter.py')
-rw-r--r-- | pylint/lint/pylinter.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pylint/lint/pylinter.py b/pylint/lint/pylinter.py index ae2126c09..ede27d1e8 100644 --- a/pylint/lint/pylinter.py +++ b/pylint/lint/pylinter.py @@ -618,16 +618,13 @@ class PyLinter( reporter = self._load_reporter_by_name(reporter_name) sub_reporters.append(reporter) - if reporter_output: (reporter_output,) = reporter_output - # pylint: disable=consider-using-with output_file = stack.enter_context( open(reporter_output, "w", encoding="utf-8") ) - - reporter.set_output(output_file) + reporter.out = output_file output_files.append(output_file) # Extend the lifetime of all opened output files |