mirror of
https://github.com/c0de-archive/spotipy.git
synced 2024-11-04 23:17:48 +00:00
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:
parent
a1cf1bd309
commit
463d6c0878
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user