tests/filtercr.py
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Mon, 23 Apr 2012 00:33:09 +0900
branchstable
changeset 16502 8298d220cbf9
parent 13141 6cfe17c19ba2
permissions -rwxr-xr-x
doc: add description about re-opening closed heads to 'Head, closed branch' in glossary

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