Fix review comments

This commit is contained in:
Lasse Bigum 2013-11-08 21:43:31 +01:00
parent 03750a8bf2
commit 093c0400a9
2 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ def audio_data_to_track(data):
if ('name' in artist_kwargs and
type(artist_kwargs['name']) is list):
track_kwargs['artists'] = [Artist(**{'name': artist})
track_kwargs['artists'] = [Artist(name=artist)
for artist in artist_kwargs['name']]
else:
track_kwargs['artists'] = [Artist(**artist_kwargs)]

View File

@ -81,7 +81,7 @@ class TranslatorTest(unittest.TestCase):
if ('name' in self.artist and
type(self.artist['name']) is list):
self.track['artists'] = [Artist(**{'name': artist})
self.track['artists'] = [Artist(name=artist)
for artist in self.artist['name']]
else:
self.track['artists'] = [Artist(**self.artist)]