mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 09:56:17 +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()
|
new_ifd = TiffImagePlugin.ImageFileDirectory_v2()
|
||||||
for tag, info in core_items.items():
|
for tag, info in core_items.items():
|
||||||
assert info.type is not None
|
assert info.type is not None
|
||||||
if not info.length:
|
if info.length == 1:
|
||||||
new_ifd[tag] = tuple(values[info.type] for _ in range(3))
|
|
||||||
elif info.length == 1:
|
|
||||||
new_ifd[tag] = values[info.type]
|
new_ifd[tag] = values[info.type]
|
||||||
|
elif not info.length:
|
||||||
|
new_ifd[tag] = tuple(values[info.type] for _ in range(3))
|
||||||
else:
|
else:
|
||||||
new_ifd[tag] = tuple(values[info.type] for _ in range(info.length))
|
new_ifd[tag] = tuple(values[info.type] for _ in range(info.length))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user