aboutsummaryrefslogtreecommitdiffstats
path: root/gdpr_obfuscator/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'gdpr_obfuscator/utils.py')
-rw-r--r--gdpr_obfuscator/utils.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdpr_obfuscator/utils.py b/gdpr_obfuscator/utils.py
index d305daf..9736d7c 100644
--- a/gdpr_obfuscator/utils.py
+++ b/gdpr_obfuscator/utils.py
@@ -8,13 +8,15 @@ class Utilities:
def __init__(self, logger=None):
pass
- def get_s3_path(self, uri):
+ @staticmethod
+ def get_s3_path(uri):
parts = uri.replace("s3://", "").split("/")
bucket = parts.pop(0)
key = "/".join(parts)
return bucket, key
- def create_byte_stream(self, data: List[Dict[str, str]]) -> bytes:
+ @staticmethod
+ def create_byte_stream(data: List[Dict[str, str]]) -> bytes:
if not data:
return b""
git.ajschof.me — hosted by ajschofield — powered by cgit