def main(): try: while True: codelines = util.pymacs_recv(sys.stdin) print '\n'.join(imap(str, ppyflakes(codelines))) except KeyboardInterrupt: pass
def test_flynote_recv(): eq(util.pymacs_recv(iter([">3 hi\n"])), ["hi\n"])