Permalink
Browse files

Fix results creating in GenericViewsAnalyzer

  • Loading branch information...
1 parent d5ca23a commit 13e1755eeedc71999cd2f82d60c2b71c2631768e @yumike committed Jul 31, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 project/lint/analyzers/generic_views.py
View
2 project/lint/analyzers/generic_views.py
@@ -60,7 +60,7 @@ def analyze_file(self, filepath, code):
for name, node in visitor.found:
result = Result(
description = '%r function is deprecated' % name,
- file = filepath,
+ path = filepath,
line = node.lineno)
for lineno, text in self.get_file_lines(filepath, node.lineno):
result.source.add_line(lineno, text, lineno == node.lineno)

0 comments on commit 13e1755

Please sign in to comment.