Mercurial > public > mercurial-scm > hg
comparison mercurial/bundlerepo.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 | f4733654f144 |
comparison
equal
deleted
inserted
replaced
51698:b0a4de6c14f8 | 51699:ca7bde5dbafb |
---|---|
406 self.tempfile = temp | 406 self.tempfile = temp |
407 | 407 |
408 with os.fdopen(fdtemp, 'wb') as fptemp: | 408 with os.fdopen(fdtemp, 'wb') as fptemp: |
409 fptemp.write(header) | 409 fptemp.write(header) |
410 while True: | 410 while True: |
411 chunk = readfn(2 ** 18) | 411 chunk = readfn(2**18) |
412 if not chunk: | 412 if not chunk: |
413 break | 413 break |
414 fptemp.write(chunk) | 414 fptemp.write(chunk) |
415 | 415 |
416 return self.vfs.open(self.tempfile, mode=b"rb") | 416 return self.vfs.open(self.tempfile, mode=b"rb") |