Browse Source

minor cython code fixes

Thomas Waldmann 1 week ago
parent
commit
2034864085
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/borg/compress.pyx

+ 3 - 2
src/borg/compress.pyx

@@ -526,9 +526,10 @@ class Auto(CompressorBase):
             get_meta(cheap_meta, meta)
             return meta, cheap_compressed_data
 
-    def decompress(self, data):
+    def decompress(self, meta, data):
         raise NotImplementedError
 
+    @classmethod
     def detect(cls, data):
         raise NotImplementedError
 
@@ -562,7 +563,7 @@ class ObfuscateSize(CompressorBase):
     def _obfuscate(self, compr_size):
         # implementations need to return the size of obfuscation data,
         # that the caller shall add.
-        raise NotImplemented
+        raise NotImplementedError
 
     def _relative_random_reciprocal_obfuscate(self, compr_size):
         # effect for SPEC 1: