mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-10 17:00:46 +00:00
Formatted strings (#1178)
* use newer string formatters (https://pyformat.info) * fix typo * went through the files again, additions from #1165 are also included * replace .format() with f strings
This commit is contained in:
16 files changed
+71
-107
No files matched your search
+1
-1
@@ -145,7 +145,7 @@ class SpotifyClientCredentials that can be used to authenticate requests like so
|
||||
playlists = sp.user_playlists('spotify')
|
||||
while playlists:
|
||||
for i, playlist in enumerate(playlists['items']):
|
||||
print("%4d %s %s" % (i + 1 + playlists['offset'], playlist['uri'], playlist['name']))
|
||||
print(f"{i + 1 + playlists['offset']:4d} {playlist['uri']} {playlist['name']}")
|
||||
if playlists['next']:
|
||||
playlists = sp.next(playlists)
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user