Fix TypeError for six.text_type
Change-Id: Ib0d668a6ddadb0fec60c964dc5e1e1bd83b74be4 Closes-Bug: #1408529
This commit is contained in:
parent
ff0d46e921
commit
aed3faf074
|
@ -62,7 +62,7 @@ class JSONDictSerializer(DictSerializer):
|
|||
|
||||
def default(self, data):
|
||||
def sanitizer(obj):
|
||||
return six.text_type(obj, 'utf8')
|
||||
return six.text_type(obj)
|
||||
return jsonutils.dumps(data, default=sanitizer)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue