mirror of
https://github.com/c0de-archive/spotipy.git
synced 2025-07-30 14:00:18 +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:
@@ -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
|
||||
|
Reference in New Issue
Block a user