# HG changeset patch # User Pierre-Yves David # Date 1622531193 -7200 # 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 -r bfb0ed91bb5e -r fb43853975b4 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