changeset 51462: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
files mercurial/branchmap.py
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/branchmap.py	Mon Feb 26 15:12:20 2024 +0100
+++ b/mercurial/branchmap.py	Mon Feb 26 15:15:10 2024 +0100
@@ -496,13 +496,11 @@
         except Exception as inst:
             if repo.ui.debugflag:
                 msg = b'invalid %s: %s\n'
-                repo.ui.debug(
-                    msg
-                    % (
-                        _branchcachedesc(repo),
-                        stringutil.forcebytestr(inst),
-                    )
+                msg %= (
+                    _branchcachedesc(repo),
+                    stringutil.forcebytestr(inst),
                 )
+                repo.ui.debug(msg)
             bcache = None
 
         finally: