mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-12 09:10:45 +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:
1 parent
a1cf1bd309
commit
463d6c0878
1 file changed
+1
-1
+1
-1
@@ -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