diff options
| author | Brolf | 2019-02-20 00:45:27 +0100 |
|---|---|---|
| committer | georg | 2019-03-05 23:13:42 +0000 |
| commit | 5ac91cd4f94a822c81bd0bc55a2f7034b31eee7a (patch) | |
| tree | b8e4e9ebb15757d5a6779eb5c224a6f98ba01ead /libmat2/images.py | |
| parent | c3f097a82ba6fd8549aabc9c5427ab4e337fec0e (diff) | |
Refactor {black,white}list into {block,allow}list
Closes #96
Diffstat (limited to 'libmat2/images.py')
| -rw-r--r-- | libmat2/images.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libmat2/images.py b/libmat2/images.py index dd3be53..32a329f 100644 --- a/libmat2/images.py +++ b/libmat2/images.py | |||
| @@ -15,7 +15,7 @@ assert Set | |||
| 15 | 15 | ||
| 16 | class PNGParser(exiftool.ExiftoolParser): | 16 | class PNGParser(exiftool.ExiftoolParser): |
| 17 | mimetypes = {'image/png', } | 17 | mimetypes = {'image/png', } |
| 18 | meta_whitelist = {'SourceFile', 'ExifToolVersion', 'FileName', | 18 | meta_allowlist = {'SourceFile', 'ExifToolVersion', 'FileName', |
| 19 | 'Directory', 'FileSize', 'FileModifyDate', | 19 | 'Directory', 'FileSize', 'FileModifyDate', |
| 20 | 'FileAccessDate', 'FileInodeChangeDate', | 20 | 'FileAccessDate', 'FileInodeChangeDate', |
| 21 | 'FilePermissions', 'FileType', 'FileTypeExtension', | 21 | 'FilePermissions', 'FileType', 'FileTypeExtension', |
| @@ -44,7 +44,7 @@ class PNGParser(exiftool.ExiftoolParser): | |||
| 44 | 44 | ||
| 45 | class GIFParser(exiftool.ExiftoolParser): | 45 | class GIFParser(exiftool.ExiftoolParser): |
| 46 | mimetypes = {'image/gif'} | 46 | mimetypes = {'image/gif'} |
| 47 | meta_whitelist = {'AnimationIterations', 'BackgroundColor', 'BitsPerPixel', | 47 | meta_allowlist = {'AnimationIterations', 'BackgroundColor', 'BitsPerPixel', |
| 48 | 'ColorResolutionDepth', 'Directory', 'Duration', | 48 | 'ColorResolutionDepth', 'Directory', 'Duration', |
| 49 | 'ExifToolVersion', 'FileAccessDate', | 49 | 'ExifToolVersion', 'FileAccessDate', |
| 50 | 'FileInodeChangeDate', 'FileModifyDate', 'FileName', | 50 | 'FileInodeChangeDate', 'FileModifyDate', 'FileName', |
| @@ -86,7 +86,7 @@ class GdkPixbufAbstractParser(exiftool.ExiftoolParser): | |||
| 86 | class JPGParser(GdkPixbufAbstractParser): | 86 | class JPGParser(GdkPixbufAbstractParser): |
| 87 | _type = 'jpeg' | 87 | _type = 'jpeg' |
| 88 | mimetypes = {'image/jpeg'} | 88 | mimetypes = {'image/jpeg'} |
| 89 | meta_whitelist = {'SourceFile', 'ExifToolVersion', 'FileName', | 89 | meta_allowlist = {'SourceFile', 'ExifToolVersion', 'FileName', |
| 90 | 'Directory', 'FileSize', 'FileModifyDate', | 90 | 'Directory', 'FileSize', 'FileModifyDate', |
| 91 | 'FileAccessDate', "FileInodeChangeDate", | 91 | 'FileAccessDate', "FileInodeChangeDate", |
| 92 | 'FilePermissions', 'FileType', 'FileTypeExtension', | 92 | 'FilePermissions', 'FileType', 'FileTypeExtension', |
| @@ -99,7 +99,7 @@ class JPGParser(GdkPixbufAbstractParser): | |||
| 99 | class TiffParser(GdkPixbufAbstractParser): | 99 | class TiffParser(GdkPixbufAbstractParser): |
| 100 | _type = 'tiff' | 100 | _type = 'tiff' |
| 101 | mimetypes = {'image/tiff'} | 101 | mimetypes = {'image/tiff'} |
| 102 | meta_whitelist = {'Compression', 'ExifByteOrder', 'ExtraSamples', | 102 | meta_allowlist = {'Compression', 'ExifByteOrder', 'ExtraSamples', |
| 103 | 'FillOrder', 'PhotometricInterpretation', | 103 | 'FillOrder', 'PhotometricInterpretation', |
| 104 | 'PlanarConfiguration', 'RowsPerStrip', 'SamplesPerPixel', | 104 | 'PlanarConfiguration', 'RowsPerStrip', 'SamplesPerPixel', |
| 105 | 'StripByteCounts', 'StripOffsets', 'BitsPerSample', | 105 | 'StripByteCounts', 'StripOffsets', 'BitsPerSample', |
