mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
Oops. Fixed a silly mistake.
This commit is contained in:
parent
72ecb8752e
commit
87d10dcaeb
|
@ -166,9 +166,9 @@ class Jpeg2KImageFile(ImageFile.ImageFile):
|
|||
elif hasattr(self.fp, "seek"):
|
||||
try:
|
||||
pos = f.tell()
|
||||
seek(0, 2)
|
||||
f.seek(0, 2)
|
||||
length = f.tell()
|
||||
seek(pos, 0)
|
||||
f.seek(pos, 0)
|
||||
except:
|
||||
length = -1
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user