mirror of
https://github.com/beetbox/beets.git
synced 2026-01-16 05:02:28 +01:00
wrap a call to filter in a list()
There are other filters like this in the master branch, but 2to3 converts them into list comprehensions. We'll deal with those later
This commit is contained in:
parent
f7f249f6c6
commit
be474b3f52
1 changed files with 2 additions and 2 deletions
|
|
@ -194,8 +194,8 @@ class ExtendedImageStructureTestMixin(ImageStructureTestMixin):
|
|||
self.assertEqual(len(mediafile.images), 3)
|
||||
|
||||
# WMA does not preserve the order, so we have to work around this
|
||||
image = filter(lambda i: i.mime_type == 'image/tiff',
|
||||
mediafile.images)[0]
|
||||
image = list(filter(lambda i: i.mime_type == 'image/tiff',
|
||||
mediafile.images))[0]
|
||||
self.assertExtendedImageAttributes(
|
||||
image, desc=u'the composer', type=ImageType.composer)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue