comparison contrib/hgclient.py @ 51690:493034cc3265

black: format the codebase with 23.3.0 The CI has moved to 23.3.0, which is the last version that supports 3.7 at runtime, so we should honor this change. # skip-blame mass-reformating only
author Raphaël Gomès <rgomes@octobus.net>
date Thu, 18 Jul 2024 12:36:12 +0200
parents 642e31cb55f0
children 7f0cb9ee0534
comparison
equal deleted inserted replaced
51689:39e2b2d062c1 51690:493034cc3265
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
24 23
25 else: 24 else:
26 import cStringIO 25 import cStringIO
27 26
28 stdout = sys.stdout 27 stdout = sys.stdout