branchcache: simplify a long line
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 26 Feb 2024 15:15:10 +0100
changeset 51462 de1bc7db9f61
parent 51461 47752632b4fc
child 51463 87b830e4de35
branchcache: simplify a long line Gratuitous change to help code readability.
mercurial/branchmap.py
--- 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: