# HG changeset patch # User Augie Fackler # Date 1489297400 18000 # Node ID 91874c247d6155d8d9ae66a93558c17ae00588ec # Parent d0014d2d76453d04e0d9982e265f0505ace8e058 manifest: add __next__ methods for Python 3 Python 3 renamed .next() in the iterator protocol to __next__(). diff -r d0014d2d7645 -r 91874c247d61 mercurial/manifest.py --- a/mercurial/manifest.py Sun Mar 12 00:51:00 2017 -0500 +++ b/mercurial/manifest.py Sun Mar 12 00:43:20 2017 -0500 @@ -123,6 +123,8 @@ zeropos = data.find('\x00', pos) return data[pos:zeropos] + __next__ = next + class lazymanifestiterentries(object): def __init__(self, lm): self.lm = lm @@ -146,6 +148,8 @@ self.pos += 1 return (data[pos:zeropos], hashval, flags) + __next__ = next + def unhexlify(data, extra, pos, length): s = data[pos:pos + length].decode('hex') if extra: