tests/filterpyflakes.py
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
Mon, 02 May 2011 10:11:05 +0200
changeset 14167 0e4753807c93
parent 14140 82f0412ef7de
child 14173 419539ea79cb
permissions -rwxr-xr-x
util & scmutil: adapt read/write helpers as request by mpm

#!/usr/bin/env python

# Filter output by pyflakes to control which warnings we check

import sys, re

for line in sys.stdin:
    # We whitelist tests
    if not re.search("imported but unused", line):
        continue
    sys.stdout.write(line)
print