From 6f0ca2087344c7e9cd3e83c56afb37f0e8387892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ianar=C3=A9=20S=C3=A9vi?= Date: Wed, 3 May 2023 00:09:16 +0200 Subject: [PATCH] linter fix --- exifread/classes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exifread/classes.py b/exifread/classes.py index a4c3f555..9b6767d9 100644 --- a/exifread/classes.py +++ b/exifread/classes.py @@ -205,7 +205,7 @@ def _process_field2(self, ifd_name, tag_name, count, offset): values = '' return values - def _process_field7(self, ifd_name, tag_name, count, offset): + def _process_field7(self, count, offset): # undefined types e.g. MakerNote/UserComment values = [] for _ in range(count): @@ -251,7 +251,7 @@ def _process_tag(self, ifd, ifd_name: str, tag_entry, entry, tag: int, tag_name, if field_type == 2: # ascii strings values = self._process_field2(ifd_name, tag_name, count, offset) elif field_type == 7: # undefined - values = self._process_field7(ifd_name, tag_name, count, offset) + values = self._process_field7(count, offset) else: # numbers values = self._process_field(tag_name, count, field_type, type_length, offset) # now 'values' is either a string or an array