tests/filtercr.py
author Alexander Sauta <demosito@gmail.com>
Fri, 15 Jun 2012 07:47:52 +0100
changeset 16976 cf1680c8567e
parent 13141 6cfe17c19ba2
permissions -rwxr-xr-x
i18n-ru: synchronized with 2255950e1f76

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