mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-29 01:13:34 +03:00
Py3 -- can't join a string
This commit is contained in:
parent
dbf47837ce
commit
c4f9fa7a40
|
@ -463,8 +463,9 @@ class ImageFileDirectory(collections.MutableMapping):
|
||||||
# of strings which I don't see in in the wild tiffs
|
# of strings which I don't see in in the wild tiffs
|
||||||
# and doesn't match the tiff spec: 8-bit byte that
|
# and doesn't match the tiff spec: 8-bit byte that
|
||||||
# contains a 7-bit ASCII code; the last byte must be
|
# contains a 7-bit ASCII code; the last byte must be
|
||||||
# NUL (binary zero).
|
# NUL (binary zero). Also, I don't think this was well
|
||||||
data = value = b"".join(value.encode('ascii', 'replace')) + b"\0"
|
# excersized before.
|
||||||
|
data = value = b"" + value.encode('ascii', 'replace') + b"\0"
|
||||||
else:
|
else:
|
||||||
# integer data
|
# integer data
|
||||||
if tag == STRIPOFFSETS:
|
if tag == STRIPOFFSETS:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user