D3924: manifest: just duplicate the definition of items as iteritems

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Wed Jul 11 17:56:32 UTC 2018


durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  The forwarding trick was failing test-check-interfaces on Python
  
  3. Duplicating a line of code is easy enough I'm doing that rather
  
  than try and figure out what's going on in any kind of detail.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/manifest.py

CHANGE DETAILS

diff --git a/mercurial/manifest.py b/mercurial/manifest.py
--- a/mercurial/manifest.py
+++ b/mercurial/manifest.py
@@ -534,7 +534,8 @@
     def items(self):
         return (x[:2] for x in self._lm.iterentries())
 
-    iteritems = items
+    def iteritems(self):
+        return (x[:2] for x in self._lm.iterentries())
 
     def iterentries(self):
         return self._lm.iterentries()



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


More information about the Mercurial-devel mailing list