# HG changeset patch # User Augie Fackler # Date 2016-11-10 21:35:54 # Node ID b667b78099eb370b1e93184e9b676d3db53f8871 # Parent 155d7ea9808566110ac0d60c86e554fa1731d256 verify: avoid shadowing two variables with a list comprehension The variable names are clearly worse now, but since we're really just transposing key and value I'm not too worried about the clarity loss. diff --git a/mercurial/verify.py b/mercurial/verify.py --- a/mercurial/verify.py +++ b/mercurial/verify.py @@ -425,7 +425,7 @@ class verifier(object): # cross-check if f in filenodes: - fns = [(lr, n) for n, lr in filenodes[f].iteritems()] + fns = [(v, k) for k, v in filenodes[f].iteritems()] for lr, node in sorted(fns): self.err(lr, _("manifest refers to unknown revision %s") % short(node), f)