Replaced flush try except with hasattr

This commit is contained in:
Andrew Murray 2015-12-09 15:47:53 +11:00
parent 8d3b240096
commit 384d32969d

View File

@ -397,10 +397,8 @@ def _save(im, fp, filename, save_all=False):
fp.write(b";") # end of file
try:
if hasattr(fp, "flush"):
fp.flush()
except:
pass
def get_interlace(im):