Mercurial > public > mercurial-scm > hg
comparison mercurial/branchmap.py @ 51459:de1bc7db9f61
branchcache: simplify a long line
Gratuitous change to help code readability.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 26 Feb 2024 15:15:10 +0100 |
parents | 47752632b4fc |
children | 87b830e4de35 |
comparison
equal
deleted
inserted
replaced
51458:47752632b4fc | 51459:de1bc7db9f61 |
---|---|
494 return None | 494 return None |
495 | 495 |
496 except Exception as inst: | 496 except Exception as inst: |
497 if repo.ui.debugflag: | 497 if repo.ui.debugflag: |
498 msg = b'invalid %s: %s\n' | 498 msg = b'invalid %s: %s\n' |
499 repo.ui.debug( | 499 msg %= ( |
500 msg | 500 _branchcachedesc(repo), |
501 % ( | 501 stringutil.forcebytestr(inst), |
502 _branchcachedesc(repo), | |
503 stringutil.forcebytestr(inst), | |
504 ) | |
505 ) | 502 ) |
503 repo.ui.debug(msg) | |
506 bcache = None | 504 bcache = None |
507 | 505 |
508 finally: | 506 finally: |
509 if f: | 507 if f: |
510 f.close() | 508 f.close() |