commit 12f45d01599e174990586317e060ae76a4833c1d Author: cypherpunks cypherpunks@torproject.org Date: Thu Feb 26 13:01:38 2015 +0100
Show correct line numbers in the output of static checks. --- stem/util/test_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stem/util/test_tools.py b/stem/util/test_tools.py index d7d6372..2e4dd0b 100644 --- a/stem/util/test_tools.py +++ b/stem/util/test_tools.py @@ -166,7 +166,7 @@ def stylistic_issues(paths, check_two_space_indents = False, check_newlines = Fa code = super(StyleReport, self).error(line_number, offset, text, check)
if code: - issues.setdefault(self.filename, []).append((offset + line_number, '%s %s' % (code, text))) + issues.setdefault(self.filename, []).append((line_number, '%s %s' % (code, text)))
style_checker = pep8.StyleGuide(ignore = CONFIG['pep8.ignore'], reporter = StyleReport) style_checker.check_files(list(_python_files(paths)))