Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/encoding.py @ 51762: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 | 43adbe03079b |
comparison
equal
deleted
inserted
replaced
51761:b0a4de6c14f8 | 51762:ca7bde5dbafb |
---|---|
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. |