mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-12 17:10:45 +00:00
Fixed warn to work with varargs
This commit is contained in:
1 parent
dc996b363f
commit
6261eae0e2
1 file changed
+4
-1
+4
-1
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user