Fixed warn to work with varargs

This commit is contained in:
Paul Lamere 2017-01-22 07:52:00 -05:00
parent dc996b363f
commit 6261eae0e2
1 changed files with 4 additions and 1 deletions

View File

@ -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