We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3abb97 commit d6b6f38Copy full SHA for d6b6f38
1 file changed
test/run-pyflakes
@@ -3,10 +3,14 @@
3
function filter() {
4
python -c '
5
import sys
6
+import re
7
+
8
+def fixnum(str):
9
+ return re.sub(":[0-9]+:", ":", str)
10
file = open(sys.argv[1])
-excludes = [line.strip() for line in file.readlines()]
11
+excludes = [fixnum(line.strip()) for line in file.readlines()]
12
for line in sys.stdin:
- if not line.strip() in excludes:
13
+ if not fixnum(line.strip()) in excludes:
14
sys.stdout.write(line)
15
' "$@"
16
}
0 commit comments