Use consistent arguments for load_read

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

View File

@ -328,7 +328,7 @@ class ImageFile(Image.Image):
# pass
# may be defined for blocked formats (e.g. PNG)
# def load_read(self, bytes):
# def load_read(self, read_bytes):
# pass
def _seek_check(self, frame):

View File

@ -103,7 +103,7 @@ class XpmImageFile(ImageFile.ImageFile):
self.tile = [("raw", (0, 0) + self.size, self.fp.tell(), ("P", 0, 1))]
def load_read(self, bytes):
def load_read(self, read_bytes):
#
# load all image data in one chunk