Changed if to elif

This commit is contained in:
Andrew Murray 2018-08-26 13:52:02 +10:00
parent e3d5494a51
commit 990fb03218

View File

@ -135,7 +135,7 @@ class TestFileTiffMetadata(PillowTestCase):
for k, v in original.items():
if isinstance(v, IFDRational):
original[k] = IFDRational(*_limit_rational(v, 2**31))
if isinstance(v, tuple) and isinstance(v[0], IFDRational):
elif isinstance(v, tuple) and isinstance(v[0], IFDRational):
original[k] = tuple(IFDRational(*_limit_rational(elt, 2**31))
for elt in v)