##// END OF EJS Templates
tests: make filterpyflakes.py read target files relatively to cwd...
FUJIWARA Katsunori -
r26023:48671378 default
parent child Browse files
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, os
5 import sys, re
6
6
7 def makekey(typeandline):
7 def makekey(typeandline):
8 """
8 """
@@ -42,7 +42,7 b' for line in sys.stdin:'
42 else:
42 else:
43 continue # no pattern matched, next line
43 continue # no pattern matched, next line
44 fn = line.split(':', 1)[0]
44 fn = line.split(':', 1)[0]
45 f = open(os.path.join(os.path.dirname(os.path.dirname(__file__)), fn))
45 f = open(fn)
46 data = f.read()
46 data = f.read()
47 f.close()
47 f.close()
48 if 'no-' 'check-code' in data:
48 if 'no-' 'check-code' in data:
General Comments 0
You need to be logged in to leave comments. Login now