changeset 30393:b667b78099eb

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.
author Augie Fackler <augie@google.com>
date Thu, 10 Nov 2016 16:35:54 -0500
parents 155d7ea98085
children 046a7e828ea6
files mercurial/verify.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/verify.py	Thu Nov 10 16:35:10 2016 -0500
+++ b/mercurial/verify.py	Thu Nov 10 16:35:54 2016 -0500
@@ -425,7 +425,7 @@
 
             # 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)