Skip to content

Commit 2a30a44

Browse files
committed
Fix python <=3.7 compatibility
sum doesn't have any keyword arguments pre python 3.8
1 parent b76e4d7 commit 2a30a44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mediafile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ def fetch(self, mutagen_file):
949949
for frame in mutagen_file.tags.getall(self.key):
950950
if frame.desc.lower() == self.description.lower():
951951
if mutagen_file.tags.version == (2, 3, 0) and self.split_v23:
952-
return sum([el.split('/') for el in frame.text], start=[])
952+
return sum((el.split('/') for el in frame.text), [])
953953
else:
954954
return frame.text
955955
return []

0 commit comments

Comments
 (0)