tests/filtercr.py
changeset 17743 6047947afb6b
parent 17742 405b6bd015df
child 17744 09d5b2055295
equal deleted inserted replaced
17742:405b6bd015df 17743:6047947afb6b
     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