mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 10:46:16 +03:00
check prior fp result, do not use if False
This commit is contained in:
parent
6de118abd3
commit
88be36c27a
|
@ -1164,7 +1164,7 @@ class TiffImageFile(ImageFile.ImageFile):
|
|||
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.")
|
||||
|
|
Loading…
Reference in New Issue
Block a user