tests/filtercr.py
author Mads Kiilerich <mads@kiilerich.com>
Wed, 11 Jan 2012 02:29:56 +0100
changeset 15882 fb63930592d6
parent 13141 6cfe17c19ba2
permissions -rwxr-xr-x
mq: remove early wlock release in qnew It seems like something that missed the refactoring in 97b734fb9c6f.

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