Skip to content

Commit

Permalink
PyflakesChecker: fix: ignored ##srccheck_ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
agroszer committed Apr 9, 2015
1 parent 7c929c8 commit 8e33a87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CHANGES
0.7.2 (unreleased)
------------------

- Nothing changed yet.
- `PyflakesChecker`: fix: ignored ##srccheck_ignore


0.7.1 (2015-02-26)
Expand Down
6 changes: 4 additions & 2 deletions src/refline/srccheck/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,10 @@ def check(self, filename, content, lines):
for warning in result:
if ('undefined name' in warning.message
and not 'unable to detect undefined names' in warning.message):
self.error = warning.message % warning.message_args
self.log(warning.lineno - 1, lines[warning.lineno - 1])
ln = lines[warning.lineno - 1]
if not self.ignoreline in ln:
self.error = warning.message % warning.message_args
self.log(warning.lineno - 1, ln)


class ConsoleLogChecker(BaseChecker):
Expand Down

0 comments on commit 8e33a87

Please sign in to comment.