Flake8 fixes

This commit is contained in:
Andrew Murray 2015-04-23 23:40:42 +10:00
parent a5917b3fa3
commit aa1368f551
2 changed files with 19 additions and 16 deletions

View File

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

View File

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