mirror of
https://github.com/c0de-archive/spotipy.git
synced 2025-07-30 14:00:18 +00:00
Fixed warn to work with varargs
This commit is contained in:
@@ -211,9 +211,12 @@ class Spotify(object):
|
||||
else:
|
||||
return None
|
||||
|
||||
def _warn(self, msg):
|
||||
def _warn_old(self, msg):
|
||||
print('warning:' + msg, file=sys.stderr)
|
||||
|
||||
def _warn(self, msg, *args):
|
||||
print('warning:' + msg.format(*args), file=sys.stderr)
|
||||
|
||||
def track(self, track_id):
|
||||
''' returns a single track given the track's ID, URI or URL
|
||||
|
||||
|
Reference in New Issue
Block a user