##// END OF EJS Templates
tests: in filterpyflakes, tolerate non-ascii file contents
Arseniy Alekseyev -
r51329:e07dc1e7 default
parent child Browse files
Show More
@@ -24,10 +24,9 b' for line in sys.stdin:'
24 break # pattern matches
24 break # pattern matches
25 if keep:
25 if keep:
26 fn = line.split(':', 1)[0]
26 fn = line.split(':', 1)[0]
27 f = open(fn)
27 with open(fn, 'rb') as f:
28 data = f.read()
28 data = f.read()
29 f.close()
29 if b'no-' b'check-code' in data:
30 if 'no-' 'check-code' in data:
31 continue
30 continue
32 lines.append(line)
31 lines.append(line)
33
32
General Comments 0
You need to be logged in to leave comments. Login now