tests/filtercr.py
branchstable
changeset 18202 fb0ae4cd706d
parent 18196 1e2a9dc832cd
parent 18195 db6984048a7b
child 18203 a4765077b65e
equal deleted inserted replaced
18196:1e2a9dc832cd 18202:fb0ae4cd706d
     1 #!/usr/bin/env python
       
     2 
       
     3 # Filter output by the progress extension to make it readable in tests
       
     4 
       
     5 import sys, re
       
     6 
       
     7 for line in sys.stdin:
       
     8     line = re.sub(r'\r+[^\n]', lambda m: '\n' + m.group()[-1:], line)
       
     9     sys.stdout.write(line)
       
    10 print