verify: use some intermediate variables instead of a multi-liner
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 01 Jun 2021 09:05:53 +0200
changeset 47361 bfb0ed91bb5e
parent 47360 0693dc0b44fb
child 47362 fb43853975b4
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/D10813
mercurial/verify.py
--- a/mercurial/verify.py	Tue Jun 01 09:05:23 2021 +0200
+++ b/mercurial/verify.py	Tue Jun 01 09:05:53 2021 +0200
@@ -361,12 +361,8 @@
                     # code (eg: hash verification, filename are ordered, etc.)
                     mfdelta = mfl.get(dir, n).read()
                 except Exception as inst:
-                    self._exc(
-                        lr,
-                        _(b"reading full manifest %s") % short(n),
-                        inst,
-                        label,
-                    )
+                    msg = _(b"reading full manifest %s") % short(n)
+                    self._exc(lr, msg, inst, label)
 
         if not dir:
             progress.complete()