tests/filtercr.py
author Edouard Gomez <ed.gomez@free.fr>
Wed, 07 Jul 2010 00:06:59 +0200
changeset 13744 7e525d2f9a75
parent 13141 6cfe17c19ba2
permissions -rwxr-xr-x
convert: add bookmark support to common sink/source implementation

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