mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-29 01:13:34 +03:00
Python3 fix
This commit is contained in:
parent
622749530b
commit
7f0bbf52e3
|
@ -355,7 +355,7 @@ class Color3DLUT(MultibandFilter):
|
||||||
"tuple of three integers.")
|
"tuple of three integers.")
|
||||||
except TypeError:
|
except TypeError:
|
||||||
size = (size, size, size)
|
size = (size, size, size)
|
||||||
size = map(int, size)
|
size = [int(x) for x in size]
|
||||||
for size1D in size:
|
for size1D in size:
|
||||||
if not 2 <= size1D <= 65:
|
if not 2 <= size1D <= 65:
|
||||||
raise ValueError("Size should be in [2, 65] range.")
|
raise ValueError("Size should be in [2, 65] range.")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user