diff mercurial/localrepo.py @ 22201:269688a398c4

cleanup: fix some list comprehension redefinitions of existing vars In all the remaining cases the comprehension variable is used for the same thing as a previous loop variable. This will mute some pyflakes "list comprehension redefines" warnings.
author Mads Kiilerich <madski@unity3d.com>
date Fri, 15 Aug 2014 04:37:46 +0200
parents 37f46575d9c2
children 650b5b6e75ed
line wrap: on
line diff
--- a/mercurial/localrepo.py	Fri Aug 15 16:20:47 2014 +0200
+++ b/mercurial/localrepo.py	Fri Aug 15 04:37:46 2014 +0200
@@ -676,8 +676,7 @@
         if not self._tagscache.tagslist:
             l = []
             for t, n in self.tags().iteritems():
-                r = self.changelog.rev(n)
-                l.append((r, t, n))
+                l.append((self.changelog.rev(n), t, n))
             self._tagscache.tagslist = [(t, n) for r, t, n in sorted(l)]
 
         return self._tagscache.tagslist