Minor str(bytes) call

Some environments have strict mode to catch potential str<>bytes error. This is triggered by this line:

```
TiffImagePlugin.py3", line 996, in _open
    logger.debug("- ifh: {}".format(ifh))
BytesWarning: str() on a bytes instance
```
This commit is contained in:
Conchylicultor 2020-07-01 12:20:17 -07:00 committed by GitHub
parent 6dc9e26e7c
commit eb6faf6f02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -993,7 +993,7 @@ class TiffImageFile(ImageFile.ImageFile):
logger.debug("*** TiffImageFile._open ***")
logger.debug("- __first: {}".format(self.__first))
logger.debug("- ifh: {}".format(ifh))
logger.debug("- ifh: {!r}".format(ifh)) # Use !r to avoid str(bytes)
# and load the first frame
self._seek(0)