changeset 48246:2f7caef017d9

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
author Raphaël Gomès <rgomes@octobus.net>
date Mon, 18 Oct 2021 10:14:44 +0200
parents b56858d85a7b
children c62e4397eb28
files hgext/fix.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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