tests/filtercr.py
author Pierre-Yves David <pierre-yves.david@logilab.fr>
Mon, 30 Jan 2012 17:37:45 +0100
branchstable
changeset 16681 0128cdb846d9
parent 13141 6cfe17c19ba2
permissions -rwxr-xr-x
mq: qimport need wlock for --push - do that after releasing lock qimport locking was introduced for phases in 29ea059be33c.

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