tests/filtercr.py
author Yuya Nishihara <yuya@tcha.org>
Mon, 02 May 2011 01:29:51 +0900
changeset 14157 a8f136f430da
parent 13141 6cfe17c19ba2
permissions -rwxr-xr-x
bisect: fix indent level

#!/usr/bin/env python

# Filter output by the progress extension to make it readable in tests

import sys, re

for line in sys.stdin:
    line = re.sub(r'\r+[^\n]', lambda m: '\n' + m.group()[-1:], line)
    sys.stdout.write(line)
print