tests/filtercr.py
author Mads Kiilerich <mads@kiilerich.com>
Tue, 21 Aug 2012 02:41:20 +0200
changeset 17426 9724f8f8850b
parent 13141 6cfe17c19ba2
permissions -rwxr-xr-x
delete some dead comments and docstrings

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