tests/filtercr.py
author Lee Cantey <lcantey@gmail.com>
Thu, 24 Mar 2011 08:51:58 -0700
changeset 13752 366e014a1ded
parent 13141 6cfe17c19ba2
permissions -rwxr-xr-x
Fix expected url to match test.

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