tests/filtercr.py
author Idan Kamara <idankk86@gmail.com>
Fri, 20 Jan 2012 23:05:14 +0200
branchstable
changeset 15958 0d2ac0299020
parent 13141 6cfe17c19ba2
permissions -rwxr-xr-x
commands: drop exclamation mark in abort message

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