Mercurial > public > mercurial-scm > hg
comparison contrib/hgclient.py @ 51699:ca7bde5dbafb
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 | 7f0cb9ee0534 |
children |
comparison
equal
deleted
inserted
replaced
51698:b0a4de6c14f8 | 51699:ca7bde5dbafb |
---|---|
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 |