diff mercurial/wireproto.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 bdb6d97f0a04
children 2d16b39601b5
line wrap: on
line diff
--- a/mercurial/wireproto.py	Fri Aug 15 16:20:47 2014 +0200
+++ b/mercurial/wireproto.py	Fri Aug 15 04:37:46 2014 +0200
@@ -249,7 +249,7 @@
         yield {'nodes': encodelist(nodes)}, f
         d = f.value
         try:
-            yield [bool(int(f)) for f in d]
+            yield [bool(int(b)) for b in d]
         except ValueError:
             self._abort(error.ResponseError(_("unexpected response:"), d))