Show More
@@ -30,10 +30,14 b' Test interactions between mq and patch.e' | |||
|
30 | 30 | |
|
31 | 31 | $ cat > cateol.py <<EOF |
|
32 | 32 | > import sys |
|
33 | > try: | |
|
34 | > stdout = sys.stdout.buffer | |
|
35 | > except AttributeError: | |
|
36 | > stdout = sys.stdout | |
|
33 | 37 | > for line in open(sys.argv[1], 'rb'): |
|
34 | 38 | > line = line.replace(b'\r', b'<CR>') |
|
35 | 39 | > line = line.replace(b'\n', b'<LF>') |
|
36 |
> |
|
|
40 | > stdout.write(line + b'\n') | |
|
37 | 41 | > EOF |
|
38 | 42 | |
|
39 | 43 |
$ |
General Comments 0
You need to be logged in to leave comments.
Login now