fix: appease pyflakes and make unused variables more obvious
authorRaphaël Gomès <rgomes@octobus.net>
Mon, 18 Oct 2021 10:14:44 +0200
changeset 48246 2f7caef017d9
parent 48244 b56858d85a7b
child 48247 c62e4397eb28
fix: appease pyflakes and make unused variables more obvious pyflakes is complaining that `baserevs` is redefined by the list comprehension, and while this lint can be valuable, it's not actually a problem here. Differential Revision: https://phab.mercurial-scm.org/D11683
hgext/fix.py
--- a/hgext/fix.py	Fri Oct 15 04:41:24 2021 +0200
+++ b/hgext/fix.py	Mon Oct 18 10:14:44 2021 +0200
@@ -434,7 +434,7 @@
             numitems[rev] += 1
     workqueue = [
         (min(dstrevs), path, dstrevs)
-        for (filerev, baserevs, path), dstrevs in dstrevmap.items()
+        for (_filerev, _baserevs, path), dstrevs in dstrevmap.items()
     ]
     # Move work items for earlier changesets to the front of the queue, so we
     # might be able to replace those changesets (in topological order) while