Patchwork D8412: nodemap: rename a variable to prevent shawoding "_"

login
register
mail settings
Submitter phabricator
Date April 14, 2020, 3:48 p.m.
Message ID <differential-rev-PHID-DREV-4fdxfva4j3gcj6cy5b2x-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/46086/
State Superseded
Headers show

Comments

phabricator - April 14, 2020, 3:48 p.m.
marmoute created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  This will make pyflakes happy with the next changeset.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D8412

AFFECTED FILES
  mercurial/revlogutils/nodemap.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/revlogutils/nodemap.py b/mercurial/revlogutils/nodemap.py
--- a/mercurial/revlogutils/nodemap.py
+++ b/mercurial/revlogutils/nodemap.py
@@ -524,7 +524,7 @@ 
 
     Children blocks are always yield before their parent block.
     """
-    for (_, item) in sorted(block.items()):
+    for (__, item) in sorted(block.items()):
         if isinstance(item, dict):
             for sub_block in _walk_trie(item):
                 yield sub_block