# HG changeset patch # User Pierre-Yves David # Date 1622530747 -7200 # Node ID 0f4beb88ec1835a5928e5afad4726c4cf2243844 # Parent 03dea855311493b3f7f66712ac674673f134264d 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 diff -r 03dea8553114 -r 0f4beb88ec18 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: