verify: use some intermediate variables instead of a multi-liner
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 01 Jun 2021 09:06:33 +0200
changeset 47362 fb43853975b4
parent 47361 bfb0ed91bb5e
child 47363 9823b3489e90
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/D10814
mercurial/verify.py
--- a/mercurial/verify.py	Tue Jun 01 09:05:53 2021 +0200
+++ b/mercurial/verify.py	Tue Jun 01 09:06:33 2021 +0200
@@ -345,9 +345,8 @@
                     if fl == b't':
                         if not match.visitdir(fullpath):
                             continue
-                        subdirnodes.setdefault(fullpath + b'/', {}).setdefault(
-                            fn, []
-                        ).append(lr)
+                        sdn = subdirnodes.setdefault(fullpath + b'/', {})
+                        sdn.setdefault(fn, []).append(lr)
                     else:
                         if not match(fullpath):
                             continue