mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +03:00
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:
parent
6dc9e26e7c
commit
eb6faf6f02
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user