def _treeget(hash, repo_dir=None):
it = cp(repo_dir).get(hash.encode('hex'))
- type = it.next()
+ _, type, _ = next(it)
assert(type == 'tree')
return git.tree_decode(''.join(it))
while len(out) < size:
if self.it and not self.blob:
try:
- self.blob = self.it.next()
+ self.blob = next(self.it)
except StopIteration:
self.it = None
if self.blob:
def _mksubs(self):
self._subs = {}
it = cp(self._repo_dir).get(self.hash.encode('hex'))
- type = it.next()
+ _, type, _ = next(it)
if type == 'commit':
del it
it = cp(self._repo_dir).get(self.hash.encode('hex') + ':')
- type = it.next()
+ _, type, _ = next(it)
assert(type == 'tree')
for (mode,mangled_name,sha) in git.tree_decode(''.join(it)):
if mangled_name == '.bupm':