Update function to make it compatible to Python 3.

The class `basestring` does not exist in Python 3. Change to `str`.
This commit is contained in:
Carlos Eduardo 2017-01-04 15:53:50 -02:00 committed by GitHub
parent a1cf1bd309
commit 463d6c0878

View File

@ -418,7 +418,7 @@ class Spotify(object):
- collaborative - optional is the playlist collaborative
'''
data = {}
if isinstance(name, basestring):
if isinstance(name, str):
data['name'] = name
if isinstance(public, bool):
data['public'] = public