verify: use some intermediate variables instead of a multi-liner
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 01 Jun 2021 08:59:07 +0200
changeset 47355 0f4beb88ec18
parent 47354 03dea8553114
child 47356 a3c3924ccc7f
verify: use some intermediate variables instead of a multi-liner This is shorter and easier to read as the indentation remains the same. Differential Revision: https://phab.mercurial-scm.org/D10807
mercurial/verify.py
--- a/mercurial/verify.py	Tue Jun 01 08:58:53 2021 +0200
+++ b/mercurial/verify.py	Tue Jun 01 08:59:07 2021 +0200
@@ -145,10 +145,9 @@
                                 linkrevs.append(lr)
                     except Exception:
                         pass
-                self._warn(
-                    _(b" (expected %s)")
-                    % b" ".join(map(pycompat.bytestr, linkrevs))
-                )
+                msg = _(b" (expected %s)")
+                msg %= b" ".join(map(pycompat.bytestr, linkrevs))
+                self._warn(msg)
             lr = None  # can't be trusted
 
         try: