Skip to content

Commit

Permalink
Use consistent arguments for load_seek
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jan 13, 2024
1 parent 9923531 commit 2fbd7dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/PIL/EpsImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def load(self, scale=1, transparency=False):
self.tile = []
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
# use our custom load method by defining this method.
pass
Expand Down
2 changes: 1 addition & 1 deletion src/PIL/IcoImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def load(self):

self.size = im.size

def load_seek(self):
def load_seek(self, pos):
# Flag the ImageFile.Parser so that it
# just does all the decode at the end.
pass
Expand Down

0 comments on commit 2fbd7dd

Please sign in to comment.