contrib/dumprevlog
changeset 43025 3518da504303
parent 39947 a063b84ce064
child 43659 99e231afc29c
equal deleted inserted replaced
43024:188476e48f51 43025:3518da504303
    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