mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
Fix for Python 3
This commit is contained in:
parent
0a3b25ef9e
commit
998955b024
|
@ -109,7 +109,7 @@ class GimpGradientFile(GradientFile):
|
|||
line = fp.readline()
|
||||
|
||||
# GIMP 1.2 gradient files don't contain a name, but GIMP 1.3 files do
|
||||
if line.startswith("Name: "):
|
||||
if line.startswith(b"Name: "):
|
||||
line = fp.readline().strip()
|
||||
|
||||
count = int(line)
|
||||
|
|
Loading…
Reference in New Issue
Block a user