Skip to content

Commit

Permalink
The json reporter no longer bypasses redirect_stdout. Close #…
Browse files Browse the repository at this point in the history
  • Loading branch information
PCManticore committed Nov 6, 2019
1 parent ee8bd98 commit c65cce4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ What's New in Pylint 2.5.0?

Release date: TBA

* The ``json`` reporter no longer bypasses ``redirect_stdout``. Close #3227

* Move ``NoFileError``, ``OutputLine``, ``FunctionalTestReporter``,
``FunctionalTestFile``, ``LintModuleTest`` and related methods from
``test_functional.py`` to ``pylint.testutils`` to help testing for 3rd
Expand Down
4 changes: 2 additions & 2 deletions pylint/reporters/json_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class JSONReporter(BaseReporter):
name = "json"
extension = "json"

def __init__(self, output=sys.stdout):
BaseReporter.__init__(self, output)
def __init__(self, output=None):
BaseReporter.__init__(self, output or sys.stdout)
self.messages = []

def handle_message(self, msg):
Expand Down

0 comments on commit c65cce4

Please sign in to comment.