contrib/hgclient.py
changeset 51700 7f0cb9ee0534
parent 51690 493034cc3265
child 51703 ca7bde5dbafb
equal deleted inserted replaced
51699:bd1483fd7088 51700:7f0cb9ee0534
    18 
    18 
    19     def bprint(*args):
    19     def bprint(*args):
    20         # remove b'' as well for ease of test migration
    20         # remove b'' as well for ease of test migration
    21         pargs = [re.sub(br'''\bb(['"])''', br'\1', b'%s' % a) for a in args]
    21         pargs = [re.sub(br'''\bb(['"])''', br'\1', b'%s' % a) for a in args]
    22         stdout.write(b' '.join(pargs) + b'\n')
    22         stdout.write(b' '.join(pargs) + b'\n')
       
    23 
    23 
    24 
    24 else:
    25 else:
    25     import cStringIO
    26     import cStringIO
    26 
    27 
    27     stdout = sys.stdout
    28     stdout = sys.stdout