Skip to content

Commit

Permalink
Fix python <=3.7 compatibility
Browse files Browse the repository at this point in the history
sum doesn't have any keyword arguments pre python 3.8
  • Loading branch information
JuniorJPDJ committed Sep 26, 2021
1 parent b76e4d7 commit 2a30a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mediafile.py
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ def fetch(self, mutagen_file):
for frame in mutagen_file.tags.getall(self.key):
if frame.desc.lower() == self.description.lower():
if mutagen_file.tags.version == (2, 3, 0) and self.split_v23:
return sum([el.split('/') for el in frame.text], start=[])
return sum((el.split('/') for el in frame.text), [])
else:
return frame.text
return []
Expand Down

0 comments on commit 2a30a44

Please sign in to comment.