equal
deleted
inserted
replaced
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 |