]> arthur.barton.de Git - bup.git/commitdiff
pylint: enable super-init-not-called
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 27 Aug 2021 22:56:24 +0000 (00:56 +0200)
committerRob Browning <rlb@defaultvalue.org>
Sun, 16 Jan 2022 20:18:19 +0000 (14:18 -0600)
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
.pylintrc
lib/bup/git.py

index c7b5933fd3e3afb2f95e999bac150d2bbffbde53..d324e5bde38c693f46b58575903a8590af45c273 100644 (file)
--- a/.pylintrc
+++ b/.pylintrc
@@ -15,4 +15,5 @@ enable=
   unidiomatic-typecheck,
   unused-import,
   unused-wildcard-import,
-  useless-return
+  useless-return,
+  super-init-not-called
index 69134ac33ae4ba0df4eb6bb691b51bbf6e7572e7..5946e66c5112dc55cf50d1b0ff93377b5cf1fdb6 100644 (file)
@@ -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]