tests/filtercr.py
author Martin Geisler <mg@aragost.com>
Tue, 28 Jun 2011 10:06:56 +0200
branchstable
changeset 14805 d5803e0b1249
parent 13141 6cfe17c19ba2
permissions -rwxr-xr-x
i18n-da: translate hg.1.html header

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