Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/encoding.py @ 51749: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 | f70f61a8c5bc |
children | 7f0cb9ee0534 |
comparison
equal
deleted
inserted
replaced
51748:39e2b2d062c1 | 51749:493034cc3265 |
---|---|
364 cwd = os.path.realpath(cwd) | 364 cwd = os.path.realpath(cwd) |
365 cwd = strtolocal(cwd) | 365 cwd = strtolocal(cwd) |
366 if DRIVE_RE.match(cwd): | 366 if DRIVE_RE.match(cwd): |
367 cwd = cwd[0:1].upper() + cwd[1:] | 367 cwd = cwd[0:1].upper() + cwd[1:] |
368 return cwd | 368 return cwd |
369 | |
370 | 369 |
371 else: | 370 else: |
372 getcwd = os.getcwdb # re-exports | 371 getcwd = os.getcwdb # re-exports |
373 | 372 |
374 # How to treat ambiguous-width characters. Set to 'wide' to treat as wide. | 373 # How to treat ambiguous-width characters. Set to 'wide' to treat as wide. |