Skip to content

Commit

Permalink
Replaced flush try except with hasattr
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Dec 9, 2015
1 parent 8d3b240 commit 384d329
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions PIL/GifImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 384d329

Please sign in to comment.