tests/filterpyflakes.py
changeset 19381 e033a7d444ac
parent 19335 77440de177f7
child 19872 681f7b9213a4
equal deleted inserted replaced
19380:ee07f9d142c9 19381:e033a7d444ac
    40         continue # no pattern matched, next line
    40         continue # no pattern matched, next line
    41     fn = line.split(':', 1)[0]
    41     fn = line.split(':', 1)[0]
    42     f = open(os.path.join(os.path.dirname(os.path.dirname(__file__)), fn))
    42     f = open(os.path.join(os.path.dirname(os.path.dirname(__file__)), fn))
    43     data = f.read()
    43     data = f.read()
    44     f.close()
    44     f.close()
    45     if 'no-check-code' in data:
    45     if 'no-' 'check-code' in data:
    46         continue
    46         continue
    47     lines.append((msgtype, line))
    47     lines.append((msgtype, line))
    48 
    48 
    49 for msgtype, line in sorted(lines, key = makekey):
    49 for msgtype, line in sorted(lines, key = makekey):
    50     sys.stdout.write(line)
    50     sys.stdout.write(line)