mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-04 04:20:10 +03:00
Update src/PIL/GimpPaletteFile.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
parent
0d00d08b15
commit
2eb6976590
|
@ -58,7 +58,7 @@ class GimpPaletteFile:
|
||||||
raise SyntaxError("bad palette file")
|
raise SyntaxError("bad palette file")
|
||||||
|
|
||||||
# 4th column is color name and may contain spaces.
|
# 4th column is color name and may contain spaces.
|
||||||
v = s.split(None, 4)
|
v = s.split(maxsplit=3)
|
||||||
if len(v) < 3:
|
if len(v) < 3:
|
||||||
raise ValueError("bad palette entry")
|
raise ValueError("bad palette entry")
|
||||||
for i in range(3):
|
for i in range(3):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user