mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 09:44: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"):
|
if self.mode not in ("L", "LA", "P", "PA"):
|
||||||
raise ValueError("illegal image mode")
|
raise ValueError("illegal image mode")
|
||||||
self.load()
|
|
||||||
if isinstance(data, ImagePalette.ImagePalette):
|
if isinstance(data, ImagePalette.ImagePalette):
|
||||||
palette = ImagePalette.raw(data.rawmode, data.palette)
|
palette = ImagePalette.raw(data.rawmode, data.palette)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user