Use consistent arguments for load_seek

This commit is contained in:
Andrew Murray 2024-01-13 21:10:02 +11:00
parent 9923531742
commit 2fbd7dda83
2 changed files with 2 additions and 2 deletions

View File

@ -408,7 +408,7 @@ class EpsImageFile(ImageFile.ImageFile):
self.tile = [] self.tile = []
return Image.Image.load(self) return Image.Image.load(self)
def load_seek(self, *args, **kwargs): def load_seek(self, pos):
# we can't incrementally load, so force ImageFile.parser to # we can't incrementally load, so force ImageFile.parser to
# use our custom load method by defining this method. # use our custom load method by defining this method.
pass pass

View File

@ -339,7 +339,7 @@ class IcoImageFile(ImageFile.ImageFile):
self.size = im.size self.size = im.size
def load_seek(self): def load_seek(self, pos):
# Flag the ImageFile.Parser so that it # Flag the ImageFile.Parser so that it
# just does all the decode at the end. # just does all the decode at the end.
pass pass