tests/filtercr.py
author Elifarley Callado Coelho Cruz
Fri, 01 Jun 2012 11:15:00 -0300
changeset 16945 989f1e4f74c6
parent 13141 6cfe17c19ba2
permissions -rwxr-xr-x
tests: removed unneeded section in acl configuration: 'extensions' Declaring 'acl' in the [extensions] section doesn't change anything.

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