Removed unused variables

This commit is contained in:
Andrew Murray 2018-06-15 19:55:48 +10:00
parent c19d77abed
commit 0e61d4be9f
2 changed files with 1 additions and 2 deletions

View File

@ -525,7 +525,7 @@ class TestFileLibTiff(LibTiffTestCase):
f.write(src.read()) f.write(src.read())
im = Image.open(tmpfile) im = Image.open(tmpfile)
count = im.n_frames im.n_frames
im.close() im.close()
try: try:
os.remove(tmpfile) # Windows PermissionError here! os.remove(tmpfile) # Windows PermissionError here!

View File

@ -543,7 +543,6 @@ def _write_local_header(fp, im, offset, flags):
o8(0)) o8(0))
include_color_table = im.encoderinfo.get('include_color_table') include_color_table = im.encoderinfo.get('include_color_table')
if include_color_table: if include_color_table:
palette = im.encoderinfo.get("palette", None)
palette_bytes = _get_palette_bytes(im) palette_bytes = _get_palette_bytes(im)
color_table_size = _get_color_table_size(palette_bytes) color_table_size = _get_color_table_size(palette_bytes)
if color_table_size: if color_table_size: