Skip to content

Commit 2034864

Browse files
minor cython code fixes
1 parent dc7d876 commit 2034864

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/borg/compress.pyx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,9 +526,10 @@ class Auto(CompressorBase):
526526
get_meta(cheap_meta, meta)
527527
return meta, cheap_compressed_data
528528

529-
def decompress(self, data):
529+
def decompress(self, meta, data):
530530
raise NotImplementedError
531531

532+
@classmethod
532533
def detect(cls, data):
533534
raise NotImplementedError
534535

@@ -562,7 +563,7 @@ class ObfuscateSize(CompressorBase):
562563
def _obfuscate(self, compr_size):
563564
# implementations need to return the size of obfuscation data,
564565
# that the caller shall add.
565-
raise NotImplemented
566+
raise NotImplementedError
566567

567568
def _relative_random_reciprocal_obfuscate(self, compr_size):
568569
# effect for SPEC 1:

0 commit comments

Comments
 (0)