Skip to content

Commit

Permalink
Use consistent arguments for load_read
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jan 13, 2024
1 parent 2fbd7dd commit 543b5a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/PIL/ImageFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def load_end(self):
# 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):
Expand Down
2 changes: 1 addition & 1 deletion src/PIL/XpmImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def _open(self):

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

Expand Down

0 comments on commit 543b5a6

Please sign in to comment.