コード例 #1
0
ファイル: ppyflakes.py プロジェクト: shavenwarthog/flynote
def main():
    try:
        while True:
            codelines = util.pymacs_recv(sys.stdin)
            print '\n'.join(imap(str, ppyflakes(codelines)))
    except KeyboardInterrupt:
        pass
コード例 #2
0
ファイル: test_util.py プロジェクト: shavenwarthog/flynote
def test_flynote_recv():
    eq(util.pymacs_recv(iter([">3 hi\n"])), ["hi\n"])