comparison 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
comparison
equal deleted inserted replaced
22200:b27c3beaaf30 22201:269688a398c4
247 def known(self, nodes): 247 def known(self, nodes):
248 f = future() 248 f = future()
249 yield {'nodes': encodelist(nodes)}, f 249 yield {'nodes': encodelist(nodes)}, f
250 d = f.value 250 d = f.value
251 try: 251 try:
252 yield [bool(int(f)) for f in d] 252 yield [bool(int(b)) for b in d]
253 except ValueError: 253 except ValueError:
254 self._abort(error.ResponseError(_("unexpected response:"), d)) 254 self._abort(error.ResponseError(_("unexpected response:"), d))
255 255
256 @batchable 256 @batchable
257 def branchmap(self): 257 def branchmap(self):