From 90db8015969a62ec93c16633f9748e6d72c6e685 Mon Sep 17 00:00:00 2001 From: Tanvir Date: Thu, 28 Nov 2024 02:40:49 +0600 Subject: [PATCH] fix `skip_extract` to be a property instead of a method or staticmethod --- stuff/hidestatusbar.py | 1 + stuff/mitm.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/stuff/hidestatusbar.py b/stuff/hidestatusbar.py index 8626377..649aafd 100644 --- a/stuff/hidestatusbar.py +++ b/stuff/hidestatusbar.py @@ -28,5 +28,6 @@ def copy(self): os.makedirs(rro_dir) shutil.copyfile(self.download_loc, os.path.join(rro_dir, "hidestatusbar.apk")) + @property def skip_extract(self): return True diff --git a/stuff/mitm.py b/stuff/mitm.py index 46a2317..2a8b551 100644 --- a/stuff/mitm.py +++ b/stuff/mitm.py @@ -16,8 +16,8 @@ def __init__(self, ca_cert_file: str = None) -> None: def download(self): raise NotImplementedError() - @staticmethod - def skip_extract(): + @property + def skip_extract(self): return True def copy(self):