mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-24 06:53:12 +03:00
SGI save handler should not close output stream
This commit is contained in:
parent
01ab019ed8
commit
feb3103bfd
|
@ -193,8 +193,6 @@ def _save(im, fp, filename):
|
||||||
for channel in im.split():
|
for channel in im.split():
|
||||||
fp.write(channel.tobytes("raw", rawmode, 0, orientation))
|
fp.write(channel.tobytes("raw", rawmode, 0, orientation))
|
||||||
|
|
||||||
fp.close()
|
|
||||||
|
|
||||||
|
|
||||||
class SGI16Decoder(ImageFile.PyDecoder):
|
class SGI16Decoder(ImageFile.PyDecoder):
|
||||||
_pulls_fd = True
|
_pulls_fd = True
|
||||||
|
|
Loading…
Reference in New Issue
Block a user