mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
fastannotate: fix pyflakes error
This is to fix the following error discovered by pyflakes: fastannotate/context.py:407: list comprehension redefines 'f' from line 352 The change is necessary after upstream changeset 4173d21a33de, which enables the check.
This commit is contained in:
parent
06d00be6b9
commit
5ee154b2f6
@ -403,8 +403,8 @@ class _annotatecontext(object):
|
||||
self.ui.write()
|
||||
|
||||
result = [
|
||||
((self.revmap.rev2hsh(f) if isinstance(f, int) else f.node()), l)
|
||||
for f, l in hist[revfctx][0]]
|
||||
((self.revmap.rev2hsh(fr) if isinstance(fr, int) else fr.node()), l)
|
||||
for fr, l in hist[revfctx][0]] # [(node, linenumber)]
|
||||
return self._refineannotateresult(result, revfctx, showpath, showlines)
|
||||
|
||||
def canannotatedirectly(self, rev):
|
||||
|
Loading…
Reference in New Issue
Block a user