Fix lint errors

This commit is contained in:
Peter Rowlands 2019-12-02 14:52:14 +09:00 committed by Andrew Murray
parent 9f4716ff30
commit 00fcc53a1d
2 changed files with 2 additions and 7 deletions

View File

@ -957,10 +957,7 @@ class TestFilePng(PillowTestCase):
with Image.open("Tests/images/old-style-jpeg-compression.png") as im: with Image.open("Tests/images/old-style-jpeg-compression.png") as im:
frames = [im.copy(), Image.new("RGBA", im.size, (255, 0, 0, 255))] frames = [im.copy(), Image.new("RGBA", im.size, (255, 0, 0, 255))]
im.save( im.save(
test_file, test_file, save_all=True, default_image=True, append_images=frames,
save_all=True,
default_image=True,
append_images=frames,
) )
with Image.open(test_file) as im: with Image.open(test_file) as im:
exception = None exception = None

View File

@ -1123,9 +1123,7 @@ def _write_multiple_frames(im, fp, chunk, rawmode):
else: else:
fdat_chunks = _fdat(fp, chunk, seq_num) fdat_chunks = _fdat(fp, chunk, seq_num)
ImageFile._save( ImageFile._save(
im_frame, im_frame, fdat_chunks, [("zip", (0, 0) + im_frame.size, 0, rawmode)],
fdat_chunks,
[("zip", (0, 0) + im_frame.size, 0, rawmode)],
) )
seq_num = fdat_chunks.seq_num seq_num = fdat_chunks.seq_num