mirror of
https://github.com/c0de-archive/spotipy.git
synced 2025-01-08 15:42: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
|
- collaborative - optional is the playlist collaborative
|
||||||
'''
|
'''
|
||||||
data = {}
|
data = {}
|
||||||
if isinstance(name, basestring):
|
if isinstance(name, str):
|
||||||
data['name'] = name
|
data['name'] = name
|
||||||
if isinstance(public, bool):
|
if isinstance(public, bool):
|
||||||
data['public'] = public
|
data['public'] = public
|
||||||
|
Loading…
Reference in New Issue
Block a user