mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 09:13:53 +00:00
Merge pull request #145 from carlosedp/patch-1
Update function to make it compatible to Python 3.
This commit is contained in:
commit
8f3afec197
@ -418,6 +418,11 @@ class Spotify(object):
|
||||
- collaborative - optional is the playlist collaborative
|
||||
'''
|
||||
data = {}
|
||||
# Add Python2 and Python3 compatibility checking string types
|
||||
try:
|
||||
basestring
|
||||
except NameError:
|
||||
basestring = str
|
||||
if isinstance(name, basestring):
|
||||
data['name'] = name
|
||||
if isinstance(public, bool):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user