diff options
author | Mike Crute <mike@crute.us> | 2020-06-08 18:20:57 +0000 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2020-06-08 18:20:57 +0000 |
commit | 3681a9b616212656462efa0a9c78722f90cca442 (patch) | |
tree | 0199712af2f8abc5635d57d7e18ec63fe6d8b58e /pandora/models/station.py | |
parent | 13b779eafd66a37ad5c50fa9be2bbc7962a73fce (diff) | |
download | pydora-3681a9b616212656462efa0a9c78722f90cca442.tar.bz2 pydora-3681a9b616212656462efa0a9c78722f90cca442.tar.xz pydora-3681a9b616212656462efa0a9c78722f90cca442.zip |
Use black for formatting
I don't particularly like the black formatter (does anybody, really?)
but it's guaranteed to be consistent so it should prevent nitpicking
style.
Diffstat (limited to 'pandora/models/station.py')
-rw-r--r-- | pandora/models/station.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pandora/models/station.py b/pandora/models/station.py index a1880ec..d3f6552 100644 --- a/pandora/models/station.py +++ b/pandora/models/station.py | |||
@@ -80,8 +80,7 @@ class Station(PandoraModel): | |||
80 | feedback = Field("feedback", model=StationFeedback) | 80 | feedback = Field("feedback", model=StationFeedback) |
81 | 81 | ||
82 | def get_playlist(self, additional_urls=None): | 82 | def get_playlist(self, additional_urls=None): |
83 | return iter(self._api_client.get_playlist(self.token, | 83 | return iter(self._api_client.get_playlist(self.token, additional_urls)) |
84 | additional_urls)) | ||
85 | 84 | ||
86 | 85 | ||
87 | class StationList(PandoraListModel): | 86 | class StationList(PandoraListModel): |
@@ -105,8 +104,10 @@ class GenreStation(PandoraModel): | |||
105 | category = Field("categoryName") | 104 | category = Field("categoryName") |
106 | 105 | ||
107 | def get_playlist(self): | 106 | def get_playlist(self): |
108 | raise NotImplementedError("Genre stations do not have playlists. " | 107 | raise NotImplementedError( |
109 | "Create a real station using the token.") | 108 | "Genre stations do not have playlists. " |
109 | "Create a real station using the token." | ||
110 | ) | ||
110 | 111 | ||
111 | 112 | ||
112 | class GenreStationList(PandoraDictListModel): | 113 | class GenreStationList(PandoraDictListModel): |