Fix TiffImagePlugin interpolating bytes into str.

This commit is contained in:
Luke Granger-Brown 2020-07-20 14:56:18 +01:00
parent 470e3b94a8
commit 4e4fe2c172

View File

@ -799,7 +799,7 @@ class ImageFileDirectory_v2(MutableMapping):
if tag == STRIPOFFSETS:
stripoffsets = len(entries)
typ = self.tagtype.get(tag)
logger.debug("Tag {}, Type: {}, Value: {}".format(tag, typ, value))
logger.debug("Tag {}, Type: {}, Value: {!r}".format(tag, typ, value))
values = value if isinstance(value, tuple) else (value,)
data = self._write_dispatch[typ](self, *values)