From 5ac91cd4f94a822c81bd0bc55a2f7034b31eee7a Mon Sep 17 00:00:00 2001 From: Brolf Date: Wed, 20 Feb 2019 00:45:27 +0100 Subject: Refactor {black,white}list into {block,allow}list Closes #96 --- libmat2/exiftool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmat2/exiftool.py') diff --git a/libmat2/exiftool.py b/libmat2/exiftool.py index db92f60..d18b1fb 100644 --- a/libmat2/exiftool.py +++ b/libmat2/exiftool.py @@ -15,14 +15,14 @@ class ExiftoolParser(abstract.AbstractParser): from a import file, hence why several parsers are re-using its `get_meta` method. """ - meta_whitelist = set() # type: Set[str] + meta_allowlist = set() # type: Set[str] def get_meta(self) -> Dict[str, Union[str, dict]]: out = subprocess.run([_get_exiftool_path(), '-json', self.filename], input_filename=self.filename, check=True, stdout=subprocess.PIPE).stdout meta = json.loads(out.decode('utf-8'))[0] - for key in self.meta_whitelist: + for key in self.meta_allowlist: meta.pop(key, None) return meta -- cgit v1.3