mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-14 03:21:44 +03:00
Python 3 compatibility
This commit is contained in:
parent
880464f46c
commit
adfda1a5a4
|
@ -49,6 +49,7 @@ def _save(im, fp, filename):
|
|||
sizes = filter(lambda x: False if (x[0] > width or x[1] > height or
|
||||
x[0] > 256 or x[1] > 256) else True,
|
||||
sizes)
|
||||
sizes = list(sizes)
|
||||
fp.write(struct.pack("<H", len(sizes))) # idCount(2)
|
||||
offset = fp.tell() + len(sizes)*16
|
||||
for size in sizes:
|
||||
|
|
Loading…
Reference in New Issue
Block a user