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