##// END OF EJS Templates
manifest: add __next__ methods for Python 3...
Augie Fackler -
r31364:91874c24 default
parent child Browse files
Show More
@@ -123,6 +123,8 b' class lazymanifestiter(object):'
123 zeropos = data.find('\x00', pos)
123 zeropos = data.find('\x00', pos)
124 return data[pos:zeropos]
124 return data[pos:zeropos]
125
125
126 __next__ = next
127
126 class lazymanifestiterentries(object):
128 class lazymanifestiterentries(object):
127 def __init__(self, lm):
129 def __init__(self, lm):
128 self.lm = lm
130 self.lm = lm
@@ -146,6 +148,8 b' class lazymanifestiterentries(object):'
146 self.pos += 1
148 self.pos += 1
147 return (data[pos:zeropos], hashval, flags)
149 return (data[pos:zeropos], hashval, flags)
148
150
151 __next__ = next
152
149 def unhexlify(data, extra, pos, length):
153 def unhexlify(data, extra, pos, length):
150 s = data[pos:pos + length].decode('hex')
154 s = data[pos:pos + length].decode('hex')
151 if extra:
155 if extra:
General Comments 0
You need to be logged in to leave comments. Login now