Skip to content

Commit

Permalink
check prior fp result, do not use if False
Browse files Browse the repository at this point in the history
  • Loading branch information
chadawagner authored and radarhere committed Aug 12, 2019
1 parent 6de118a commit 88be36c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/TiffImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ def _load_libtiff(self):
if DEBUG:
print("have getvalue. just sending in a string from getvalue")
n, err = decoder.decode(self.fp.getvalue())
elif hasattr(self.fp, "fileno"):
elif fp:
# we've got a actual file on disk, pass in the fp.
if DEBUG:
print("have fileno, calling fileno version of the decoder.")
Expand Down

0 comments on commit 88be36c

Please sign in to comment.