##// END OF EJS Templates
tests: write directly to stdout to avoid b'' prefixes...
Gregory Szorc -
r41360:84707d9e default
parent child Browse files
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 > print(line)
40 > stdout.write(line + b'\n')
37 > EOF
41 > EOF
38
42
39 $ hg init repo
43 $ hg init repo
General Comments 0
You need to be logged in to leave comments. Login now