From fa092c0294bdd0a57f1031b479c32342272b8139 Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Wed, 20 Feb 2013 18:45:48 +0100 Subject: [PATCH] Remove the obsolete argument 'reporter' of check_code and check_file --- flake8/main.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/flake8/main.py b/flake8/main.py index 72878c7..cbcaeef 100644 --- a/flake8/main.py +++ b/flake8/main.py @@ -41,18 +41,16 @@ def main(): raise SystemExit(1) -def check_file(path, ignore=(), complexity=-1, reporter=None): +def check_file(path, ignore=(), complexity=-1): flake8_style = get_style_guide( - config_file=DEFAULT_CONFIG, - ignore=ignore, max_complexity=complexity, reporter=reporter) + config_file=DEFAULT_CONFIG, ignore=ignore, max_complexity=complexity) return flake8_style.input_file(path) -def check_code(code, ignore=(), complexity=-1, reporter=None): +def check_code(code, ignore=(), complexity=-1): flake8_style = get_style_guide( - config_file=DEFAULT_CONFIG, - ignore=ignore, max_complexity=complexity, reporter=reporter) - return flake8_style.input_file('-', lines=code.split('\n')) + config_file=DEFAULT_CONFIG, ignore=ignore, max_complexity=complexity) + return flake8_style.input_file('-', lines=code.splitlines()) class Flake8Command(setuptools.Command):