mirror of
https://github.com/c0de-archive/spotipy.git
synced 2024-11-04 23:17:48 +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