mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-11 07:44:46 +03:00
Style fix
This commit is contained in:
parent
26da91ca56
commit
a86c5ec043
|
@ -434,7 +434,7 @@ def _get_local_header(fp, im, offset, flags):
|
||||||
else:
|
else:
|
||||||
transparent_color_exists = False
|
transparent_color_exists = False
|
||||||
|
|
||||||
if im.encoderinfo.get("duration") != None:
|
if im.encoderinfo.get("duration") is not None:
|
||||||
duration = int(im.encoderinfo["duration"] / 10)
|
duration = int(im.encoderinfo["duration"] / 10)
|
||||||
else:
|
else:
|
||||||
duration = 0
|
duration = 0
|
||||||
|
@ -451,7 +451,7 @@ def _get_local_header(fp, im, offset, flags):
|
||||||
o8(transparency) + # transparency index
|
o8(transparency) + # transparency index
|
||||||
o8(0))
|
o8(0))
|
||||||
|
|
||||||
if im.encoderinfo.get("loop") != None:
|
if im.encoderinfo.get("loop") is not None:
|
||||||
number_of_loops = im.encoderinfo["loop"]
|
number_of_loops = im.encoderinfo["loop"]
|
||||||
fp.write(b"!" +
|
fp.write(b"!" +
|
||||||
o8(255) + # extension intro
|
o8(255) + # extension intro
|
||||||
|
|
Loading…
Reference in New Issue
Block a user