Show More
@@ -2,7 +2,7 b'' | |||||
2 |
|
2 | |||
3 | # Filter output by pyflakes to control which warnings we check |
|
3 | # Filter output by pyflakes to control which warnings we check | |
4 |
|
4 | |||
5 | import sys, re |
|
5 | import sys, re, os | |
6 |
|
6 | |||
7 | def makekey(message): |
|
7 | def makekey(message): | |
8 | # "path/file:line: message" |
|
8 | # "path/file:line: message" | |
@@ -25,6 +25,12 b' for line in sys.stdin:' | |||||
25 | ] |
|
25 | ] | |
26 | if not re.search('|'.join(pats), line): |
|
26 | if not re.search('|'.join(pats), line): | |
27 | continue |
|
27 | continue | |
|
28 | fn = line.split(':', 1)[0] | |||
|
29 | f = open(os.path.join(os.path.dirname(os.path.dirname(__file__)), fn)) | |||
|
30 | data = f.read() | |||
|
31 | f.close() | |||
|
32 | if 'no-check-code' in data: | |||
|
33 | continue | |||
28 | lines.append(line) |
|
34 | lines.append(line) | |
29 |
|
35 | |||
30 | for line in sorted(lines, key = makekey): |
|
36 | for line in sorted(lines, key = makekey): |
General Comments 0
You need to be logged in to leave comments.
Login now