tests/filtercr.py
author Martin Geisler <mg@aragost.com>
Fri, 13 May 2011 11:26:29 +0200
changeset 14315 f6b3b346d80c
parent 13141 6cfe17c19ba2
permissions -rwxr-xr-x
Makefile: remove pure modules on clean

#!/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