Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
38656:531f5e933e49 | 38657:28c9d67d88ab |
---|---|
532 return c | 532 return c |
533 | 533 |
534 def items(self): | 534 def items(self): |
535 return (x[:2] for x in self._lm.iterentries()) | 535 return (x[:2] for x in self._lm.iterentries()) |
536 | 536 |
537 iteritems = items | 537 def iteritems(self): |
538 return (x[:2] for x in self._lm.iterentries()) | |
538 | 539 |
539 def iterentries(self): | 540 def iterentries(self): |
540 return self._lm.iterentries() | 541 return self._lm.iterentries() |
541 | 542 |
542 def text(self): | 543 def text(self): |