tests/filterpyflakes.py
changeset 43076 2372284d9457
parent 33367 6029939f7e98
child 45830 c102b704edb5
equal deleted inserted replaced
43075:57875cf423c9 43076:2372284d9457
    20 
    20 
    21     keep = True
    21     keep = True
    22     for pat in pats:
    22     for pat in pats:
    23         if re.search(pat, line):
    23         if re.search(pat, line):
    24             keep = False
    24             keep = False
    25             break # pattern matches
    25             break  # pattern matches
    26     if keep:
    26     if keep:
    27         fn = line.split(':', 1)[0]
    27         fn = line.split(':', 1)[0]
    28         f = open(fn)
    28         f = open(fn)
    29         data = f.read()
    29         data = f.read()
    30         f.close()
    30         f.close()