aboutsummaryrefslogtreecommitdiffstats
path: root/gdpr_obfuscator
diff options
context:
space:
mode:
authorAlex Schofield <git@ajschof.me>2025-03-02 18:02:58 +0000
committerAlex Schofield <git@ajschof.me>2025-03-02 18:03:04 +0000
commitf2955bfdfab570f2f01059cc5b8a8347b023d31c (patch)
treecedaeeb5ba611cf577b3075a336dd144a3c614dd /gdpr_obfuscator
parent4818d450e4ac02d80749b2ddc3474a632e2eecdc (diff)
downloadgdpr-obfuscator-f2955bfdfab570f2f01059cc5b8a8347b023d31c.tar.gz
gdpr-obfuscator-f2955bfdfab570f2f01059cc5b8a8347b023d31c.zip
change external variable `path` used in FileHandler methods
Diffstat (limited to 'gdpr_obfuscator')
-rw-r--r--gdpr_obfuscator/read.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdpr_obfuscator/read.py b/gdpr_obfuscator/read.py
index a3761ae..dd8d48c 100644
--- a/gdpr_obfuscator/read.py
+++ b/gdpr_obfuscator/read.py
@@ -14,21 +14,21 @@ class FileHandler:
def __init__(self):
self.utils = Utilities()
- def read_local(self, path) -> List[Dict[str, str]]:
+ def read_local(self, file_path) -> List[Dict[str, str]]:
"""
A method to read a local CSV file and return the data as a list of
dictionaries.
"""
- with open(path, mode="r", encoding="utf-8") as f:
+ with open(file_path, mode="r", encoding="utf-8") as f:
return self.read_string(f.read())
- def read_s3(self, path) -> List[Dict[str, str]]:
+ def read_s3(self, file_path) -> List[Dict[str, str]]:
"""
A method to read an S3 object containing CSV data
and return the data as a list of dictionaries.
"""
- bucket, key = self.utils.get_s3_path(path)
+ bucket, key = self.utils.get_s3_path(file_path)
client = boto3.client("s3")
git.ajschof.me — hosted by ajschofield — powered by cgit