Skip to content

Commit 80fd507

Browse files
authored
Merge pull request #7713 from radarhere/load
2 parents 4a7a642 + 543b5a6 commit 80fd507

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/PIL/EpsImagePlugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def load(self, scale=1, transparency=False):
408408
self.tile = []
409409
return Image.Image.load(self)
410410

411-
def load_seek(self, *args, **kwargs):
411+
def load_seek(self, pos):
412412
# we can't incrementally load, so force ImageFile.parser to
413413
# use our custom load method by defining this method.
414414
pass

src/PIL/IcoImagePlugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def load(self):
339339

340340
self.size = im.size
341341

342-
def load_seek(self):
342+
def load_seek(self, pos):
343343
# Flag the ImageFile.Parser so that it
344344
# just does all the decode at the end.
345345
pass

src/PIL/ImageFile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def load_end(self):
328328
# pass
329329

330330
# may be defined for blocked formats (e.g. PNG)
331-
# def load_read(self, bytes):
331+
# def load_read(self, read_bytes):
332332
# pass
333333

334334
def _seek_check(self, frame):

src/PIL/XpmImagePlugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def _open(self):
103103

104104
self.tile = [("raw", (0, 0) + self.size, self.fp.tell(), ("P", 0, 1))]
105105

106-
def load_read(self, bytes):
106+
def load_read(self, read_bytes):
107107
#
108108
# load all image data in one chunk
109109

0 commit comments

Comments
 (0)