Mercurial > public > mercurial-scm > hg-stable
diff mercurial/manifest.py @ 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 | 0db41eb0a3ac |
children | 0a57945aaf7f |
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()