From 3794f69251469605f970ce2720c0fc6424c73792 Mon Sep 17 00:00:00 2001 From: Dima Ryazanov Date: Sun, 13 Feb 2022 20:55:44 -0800 Subject: [PATCH] Remove the "compress" method: not used (yet), and not tested. Hopefully fixes the cov error. --- api/python/quilt3/formats.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/api/python/quilt3/formats.py b/api/python/quilt3/formats.py index 5b82f1a0310..d785cc7e59e 100644 --- a/api/python/quilt3/formats.py +++ b/api/python/quilt3/formats.py @@ -1060,11 +1060,6 @@ class BaseCompressionHandler(ABC): name = None handled_extensions = () - @abstractmethod - def compress(self, data): - "Compress the given bytes object" - pass - @abstractmethod def decompress(self, data): "Decompress the given bytes object" @@ -1083,9 +1078,6 @@ class GzipCompressionHandler(BaseCompressionHandler): """Compression handler for gzip""" handled_extensions = ['gz', 'gzip'] - def compress(self, data): - return gzip.compress(data) - def decompress(self, data): return gzip.decompress(data)