Skip to content

Commit 1d9b2b2

Browse files
committed
Tweaked run-pyflakes (again) to be less sensitive to line position of excluded comments
- Legacy-Id: 284
1 parent 06eae09 commit 1d9b2b2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/run-pyflakes

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import sys
66
import re
77
88
def fixnum(str):
9-
return re.sub(":[0-9]+:", ":", str)
9+
str = re.sub(":[0-9]+:", ":", str)
10+
str = re.sub("line [0-9]+$", "earlier line", str)
11+
return str
1012
file = open(sys.argv[1])
1113
excludes = [fixnum(line.strip()) for line in file.readlines()]
1214
for line in sys.stdin:

0 commit comments

Comments
 (0)