mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
Removed unnecessary load()
This commit is contained in:
parent
b6b362c807
commit
9192a33b38
|
@ -1730,7 +1730,6 @@ class Image:
|
|||
|
||||
if self.mode not in ("L", "LA", "P", "PA"):
|
||||
raise ValueError("illegal image mode")
|
||||
self.load()
|
||||
if isinstance(data, ImagePalette.ImagePalette):
|
||||
palette = ImagePalette.raw(data.rawmode, data.palette)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user