# HG changeset patch # User Pierre-Yves David # Date 2021-06-01 07:06:33 # Node ID fb43853975b416027a92e4df3cb6a6bdb57e0d55 # Parent bfb0ed91bb5ea61a1e5438671e2defdc2bdc7784 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 diff --git a/mercurial/verify.py b/mercurial/verify.py --- a/mercurial/verify.py +++ b/mercurial/verify.py @@ -345,9 +345,8 @@ class verifier(object): 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