tests/filtercr.py
author Martin Geisler <mg@lazybytes.net>
Tue, 19 Apr 2011 13:25:19 +0200
branchstable
changeset 13957 044e1356327d
parent 13141 6cfe17c19ba2
permissions -rwxr-xr-x
rollback: lower-case warning issued when branch cannot be reset Also improved the word order.

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