From c6873fdcabf47134478be2b1419cb35b29eed041 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Fri, 11 Nov 2022 15:23:34 -0800 Subject: [PATCH] Reduce long line. --- voussoirkit/imagetools.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/voussoirkit/imagetools.py b/voussoirkit/imagetools.py index 619950d..cbd8996 100644 --- a/voussoirkit/imagetools.py +++ b/voussoirkit/imagetools.py @@ -87,7 +87,11 @@ def _get_exif_datetime_pil(image): def _get_exif_datetime_exifread(path): path = pathclass.Path(path) exif = _exifread.process_file(path.open('rb')) - exif_date = exif.get('EXIF DateTimeOriginal') or exif.get('Image DateTime') or exif.get('EXIF DateTimeDigitized') + exif_date = ( + exif.get('EXIF DateTimeOriginal') or + exif.get('Image DateTime') or + exif.get('EXIF DateTimeDigitized') + ) if not exif_date: return None