X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fbup%2Fvfs.py;h=b9e90f3415c18569a2c72fc2e4f3121066652063;hb=d5cb741fd70c5cb8d206a5fdc70fa8e640250e99;hp=b8ebb48d102a2be3077a899c295c021d5912477a;hpb=8441e2b8aeb4443ac91f2e3287668776b3c283e9;p=bup.git diff --git a/lib/bup/vfs.py b/lib/bup/vfs.py index b8ebb48..b9e90f3 100644 --- a/lib/bup/vfs.py +++ b/lib/bup/vfs.py @@ -37,7 +37,7 @@ class TooManySymlinks(NodeError): 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)) @@ -108,7 +108,7 @@ class _ChunkReader: 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: @@ -424,11 +424,11 @@ class Dir(Node): 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':