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