changeset 38657:28c9d67d88ab

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
author Augie Fackler <augie@google.com>
date Wed, 11 Jul 2018 11:43:22 -0400
parents 531f5e933e49
children a75896bf5ccb
files mercurial/manifest.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()