SGI save handler should not close output stream

This commit is contained in:
Fariz Rahman 2021-07-30 00:57:00 +04:00 committed by GitHub
parent 01ab019ed8
commit feb3103bfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,8 +193,6 @@ def _save(im, fp, filename):
for channel in im.split():
fp.write(channel.tobytes("raw", rawmode, 0, orientation))
fp.close()
class SGI16Decoder(ImageFile.PyDecoder):
_pulls_fd = True