equal
deleted
inserted
replaced
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 |
|