Skip to content

Commit

Permalink
Get rid of setReporter() method and just use set_reporter()
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigc committed Apr 13, 2020
1 parent 9a0fcb9 commit 2c1c31a
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions twistedchecker/core/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(self):
# set default output stream to stdout
self.setOutput(sys.stdout)
# set default reporter to limited reporter
self.setReporter(LimitedReporter(allowedMessages))
self.linter.set_reporter(LimitedReporter(allowedMessages))


def _makeOptions(self):
Expand Down Expand Up @@ -106,15 +106,6 @@ def setOutput(self, stream):
sys.stdout = stream


def setReporter(self, reporter):
"""
Set the reporter of pylint.
@param reporter: reporter used to show messages
"""
self.linter.set_reporter(reporter)


def displayHelp(self):
"""
Output help message of twistedchecker.
Expand Down

0 comments on commit 2c1c31a

Please sign in to comment.