mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
Unnecessary list comprehension - 'tuple' can take a generator
This commit is contained in:
parent
d69ef6a529
commit
088d04470e
|
@ -136,8 +136,8 @@ class TestFileTiffMetadata(PillowTestCase):
|
|||
if isinstance(v, IFDRational):
|
||||
original[k] = IFDRational(*_limit_rational(v, 2**31))
|
||||
if isinstance(v, tuple) and isinstance(v[0], IFDRational):
|
||||
original[k] = tuple([IFDRational(*_limit_rational(elt, 2**31))
|
||||
for elt in v])
|
||||
original[k] = tuple(IFDRational(*_limit_rational(elt, 2**31))
|
||||
for elt in v)
|
||||
|
||||
ignored = ['StripByteCounts', 'RowsPerStrip',
|
||||
'PageNumber', 'StripOffsets']
|
||||
|
|
Loading…
Reference in New Issue
Block a user