Fix a syntax error

This commit is contained in:
Sergii Tytarenko 2018-08-29 11:51:06 +03:00
parent 65b35d84f8
commit ba8f59107d

View File

@ -528,8 +528,8 @@ def _write_local_header(fp, im, offset, flags):
o8(transparency) + # transparency index
o8(0))
if "comment" in im.encoderinfo and \
and im.encoderinfo["comment"] is not None \
if "comment" in im.encoderinfo \
and im.encoderinfo["comment"] is not None \
and 1 <= len(im.encoderinfo["comment"]) <= 255:
fp.write(b"!" +
o8(254) + # extension intro