mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 09:26:16 +03:00
Rearranged code
This commit is contained in:
parent
f624460321
commit
1cf887dbec
|
@ -241,10 +241,10 @@ class TestFileLibTiff(LibTiffTestCase):
|
|||
new_ifd = TiffImagePlugin.ImageFileDirectory_v2()
|
||||
for tag, info in core_items.items():
|
||||
assert info.type is not None
|
||||
if not info.length:
|
||||
new_ifd[tag] = tuple(values[info.type] for _ in range(3))
|
||||
elif info.length == 1:
|
||||
if info.length == 1:
|
||||
new_ifd[tag] = values[info.type]
|
||||
elif not info.length:
|
||||
new_ifd[tag] = tuple(values[info.type] for _ in range(3))
|
||||
else:
|
||||
new_ifd[tag] = tuple(values[info.type] for _ in range(info.length))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user