PIL: write to file-compatible object fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-imaging (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: python-imaging
>>> import io, PIL.Image
>>> img = PIL.Image.
>>> stream = io.BytesIO()
>>> img.save(
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
save_
File "/usr/lib/
ImageFile.
File "/usr/lib/
fh = fp.fileno()
File "/usr/lib/
self.
File "/usr/lib/
(self.
io.UnsupportedO
This is due to line 478 in ImageFile.py, where they rely on an AttributeError to be raised instead of io.UnsupportedO
Status changed to 'Confirmed' because the bug affects multiple users.