Fix for Python 3

This commit is contained in:
hugovk 2014-08-26 12:23:12 +03:00
parent 0a3b25ef9e
commit 998955b024

View File

@ -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)