tests/filtercr.py
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
Thu, 26 Jul 2012 16:21:43 +0200
branchstable
changeset 17253 67f56ff5afcd
parent 13141 6cfe17c19ba2
permissions -rwxr-xr-x
obsolete: fix decoding error message arguments

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