From patchwork Mon Oct 18 09:35:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D11683: fix: appease pyflakes and make unused variables more obvious From: phabricator X-Patchwork-Id: 50007 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Mon, 18 Oct 2021 09:35:56 +0000 Alphare created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY 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. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11683 AFFECTED FILES hgext/fix.py CHANGE DETAILS To: Alphare, #hg-reviewers Cc: mercurial-patches, mercurial-devel diff --git a/hgext/fix.py b/hgext/fix.py --- a/hgext/fix.py +++ b/hgext/fix.py @@ -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