manifest: just duplicate the definition of items as iteritems
authorAugie Fackler <augie@google.com>
Wed, 11 Jul 2018 11:43:22 -0400
changeset 38657 28c9d67d88ab
parent 38656 531f5e933e49
child 38658 a75896bf5ccb
manifest: just duplicate the definition of items as iteritems 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. Differential Revision: https://phab.mercurial-scm.org/D3924
mercurial/manifest.py
--- a/mercurial/manifest.py	Wed Jul 11 11:41:14 2018 -0400
+++ b/mercurial/manifest.py	Wed Jul 11 11:43:22 2018 -0400
@@ -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()