mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-24 07:40:32 +03:00
Added flush
This commit is contained in:
parent
300f1ffc02
commit
9125631ff0
|
@ -193,6 +193,9 @@ 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))
|
||||||
|
|
||||||
|
if hasattr(fp, "flush"):
|
||||||
|
fp.flush()
|
||||||
|
|
||||||
|
|
||||||
class SGI16Decoder(ImageFile.PyDecoder):
|
class SGI16Decoder(ImageFile.PyDecoder):
|
||||||
_pulls_fd = True
|
_pulls_fd = True
|
||||||
|
|
Loading…
Reference in New Issue
Block a user