X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=lib%2Fbup%2Fgit.py;h=5946e66c5112dc55cf50d1b0ff93377b5cf1fdb6;hb=6b3ca3bfa2de00c23c037737eae475e616ac3ed6;hp=69134ac33ae4ba0df4eb6bb691b51bbf6e7572e7;hpb=84cb94e1feb584ae7c67d65c27b2ff1a8e01e489;p=bup.git diff --git a/lib/bup/git.py b/lib/bup/git.py index 69134ac..5946e66 100644 --- a/lib/bup/git.py +++ b/lib/bup/git.py @@ -372,10 +372,7 @@ def _decode_packobj(buf): return (type, zlib.decompress(buf[i+1:])) -class PackIdx: - def __init__(self): - assert(0) - +class PackIdx(object): def find_offset(self, hash): """Get the offset of an object inside the index file.""" idx = self._idx_from_hash(hash) @@ -414,6 +411,7 @@ class PackIdx: class PackIdxV1(PackIdx): """Object representation of a Git pack index (version 1) file.""" def __init__(self, filename, f): + super(PackIdxV1, self).__init__() self.closed = False self.name = filename self.idxnames = [self.name] @@ -467,6 +465,7 @@ class PackIdxV1(PackIdx): class PackIdxV2(PackIdx): """Object representation of a Git pack index (version 2) file.""" def __init__(self, filename, f): + super(PackIdxV2, self).__init__() self.closed = False self.name = filename self.idxnames = [self.name]