tests/filtercr.py
author Bryan O'Sullivan <bryano@fb.com>
Tue, 15 May 2012 10:44:17 -0700
changeset 16802 7e5d94381cd1
parent 13141 6cfe17c19ba2
permissions -rwxr-xr-x
perf: add a perfancestors benchmark

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