Skip to content

Commit 35634ea

Browse files
committed
Fix creation of value-based meanings with Python 3
[close ch64511]
1 parent bad07f1 commit 35634ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dataikuapi/dssclient.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from .dss.apideployer import DSSAPIDeployer
1818
from .dss.projectdeployer import DSSProjectDeployer
1919
import os.path as osp
20-
from .utils import DataikuException
20+
from .utils import DataikuException, dku_basestring_type
2121

2222
class DSSClient(object):
2323
"""Entry point for the DSS API client"""
@@ -679,7 +679,7 @@ def create_meaning(self, id, label, type, description=None,
679679
:returns: A :class:`dataikuapi.dss.meaning.DSSMeaning` meaning handle
680680
"""
681681
def make_entry(v):
682-
if isinstance(v, str) or isinstance(v, unicode):
682+
if isinstance(v, dku_basestring_type):
683683
return {'value':v}
684684
else:
685685
return v

0 commit comments

Comments
 (0)