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

login
register
mail settings
Submitter phabricator
Date April 14, 2020, 7:02 p.m.
Message ID <42314702fd60eaec44d47be953855f9e@localhost.localdomain>
Download mbox | patch
Permalink /patch/46104/
State Not Applicable
Headers show

Comments

phabricator - April 14, 2020, 7:02 p.m.
Closed by commit rHGed475420e0af: nodemap: rename a variable to prevent shawoding &quot;_&quot; (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8412?vs=21060&id=21075

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8412/new/

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

AFFECTED FILES
  mercurial/revlogutils/nodemap.py

CHANGE DETAILS




To: marmoute, #hg-reviewers, pulkit
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
@@ -519,7 +519,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