Py3 -- can't join a string

This commit is contained in:
wiredfool 2013-10-02 22:23:27 -07:00
parent dbf47837ce
commit c4f9fa7a40

View File

@ -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: