tests/filtercr.py
branchstable
changeset 17839 d118a4f4fd16
parent 17735 605fe310691f
parent 17838 d51364b318ea
child 17840 af7ccbf2addc
equal deleted inserted replaced
17735:605fe310691f 17839:d118a4f4fd16
     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