Merge pull request #4803 from lukegb/bytes-warning

This commit is contained in:
Hugo van Kemenade 2020-09-03 19:00:53 +03:00 committed by GitHub
commit 9fe39faa49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
set -e
python -m pytest -v -x -W always --cov PIL --cov Tests --cov-report term Tests
python -bb -m pytest -v -x -W always --cov PIL --cov Tests --cov-report term Tests
# Docs
if [ "$TRAVIS_PYTHON_VERSION" == "3.8" ] && [ "$TRAVIS_CPU_ARCH" == "amd64" ]; then

View File

@ -805,7 +805,7 @@ class ImageFileDirectory_v2(MutableMapping):
if tag == STRIPOFFSETS:
stripoffsets = len(entries)
typ = self.tagtype.get(tag)
logger.debug(f"Tag {tag}, Type: {typ}, Value: {value}")
logger.debug(f"Tag {tag}, Type: {typ}, Value: {repr(value)}")
is_ifd = typ == TiffTags.LONG and isinstance(value, dict)
if is_ifd:
if self._endian == "<":