changeset 47355:0f4beb88ec18

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
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 01 Jun 2021 08:59:07 +0200
parents 03dea8553114
children a3c3924ccc7f
files mercurial/verify.py
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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: