tests/filtercr.py
author Wagner Bruna <wbruna@softwareexpress.com.br>
Tue, 18 Oct 2011 09:51:02 -0200
branchstable
changeset 15310 e95629b95311
parent 13141 6cfe17c19ba2
permissions -rwxr-xr-x
i18n-pt_BR: synchronized with ab341fbb05b1

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