Added flush

This commit is contained in:
Andrew Murray 2021-07-30 20:25:07 +10:00
parent 300f1ffc02
commit 9125631ff0

View File

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