statical analysis shouldn't report the exact same error twice

This commit is contained in:
Dave Halter
2014-05-11 16:45:22 +02:00
parent 7abdc375c2
commit 3f2e737702
2 changed files with 11 additions and 1 deletions

View File

@@ -594,7 +594,7 @@ class Script(object):
self._evaluator.eval_statement(stmt)
analysis = [a for a in self._evaluator.analysis if self.path == a.path]
return sorted(analysis, key=lambda x: x.line)
return sorted(set(analysis), key=lambda x: x.line)
class Interpreter(Script):