mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-04 21:50:54 +03:00
Flake8 fixes
This commit is contained in:
parent
a5917b3fa3
commit
aa1368f551
|
@ -308,6 +308,7 @@ def _save(im, fp, filename):
|
|||
except:
|
||||
pass
|
||||
|
||||
|
||||
def get_interlace(im):
|
||||
try:
|
||||
interlace = im.encoderinfo["interlace"]
|
||||
|
@ -320,6 +321,7 @@ def get_interlace(im):
|
|||
|
||||
return interlace
|
||||
|
||||
|
||||
def get_local_header(fp, im, offset=(0, 0)):
|
||||
transparent_color_exists = False
|
||||
try:
|
||||
|
@ -381,6 +383,7 @@ def get_local_header(fp, im, offset=(0, 0)):
|
|||
o8(flags) + # flags
|
||||
o8(8)) # bits
|
||||
|
||||
|
||||
def _save_netpbm(im, fp, filename):
|
||||
|
||||
#
|
||||
|
|
|
@ -174,7 +174,7 @@ class TestFileGif(PillowTestCase):
|
|||
|
||||
out = self.tempfile('temp.gif')
|
||||
fp = open(out, "wb")
|
||||
im = Image.new('L',(100,100),'#000')
|
||||
im = Image.new('L', (100, 100), '#000')
|
||||
for s in GifImagePlugin.getheader(im)[0] + GifImagePlugin.getdata(im, duration=duration):
|
||||
fp.write(s)
|
||||
fp.write(b";")
|
||||
|
@ -188,7 +188,7 @@ class TestFileGif(PillowTestCase):
|
|||
|
||||
out = self.tempfile('temp.gif')
|
||||
fp = open(out, "wb")
|
||||
im = Image.new('L',(100,100),'#000')
|
||||
im = Image.new('L', (100, 100), '#000')
|
||||
for s in GifImagePlugin.getheader(im)[0] + GifImagePlugin.getdata(im, loop=number_of_loops):
|
||||
fp.write(s)
|
||||
fp.write(b";")
|
||||
|
|
Loading…
Reference in New Issue
Block a user