equal
deleted
inserted
replaced
20 |
20 |
21 def binopen(path, mode=b'rb'): |
21 def binopen(path, mode=b'rb'): |
22 if b'b' not in mode: |
22 if b'b' not in mode: |
23 mode = mode + b'b' |
23 mode = mode + b'b' |
24 return open(path, pycompat.sysstr(mode)) |
24 return open(path, pycompat.sysstr(mode)) |
|
25 binopen.options = {} |
25 |
26 |
26 def printb(data, end=b'\n'): |
27 def printb(data, end=b'\n'): |
27 sys.stdout.flush() |
28 sys.stdout.flush() |
28 pycompat.stdout.write(data + end) |
29 pycompat.stdout.write(data + end) |
29 |
30 |