fix py34 not supporting unicode issue

the type unicode is not supported in py34
change it to six.text_type
test case for this change is implemented in:
https://review.openstack.org/#/c/393935

Change-Id: I9dd62944a632bc1f5a9d51be94c8bc82423aceb0
Closes-Bug: #1639376
This commit is contained in:
JinLi 2016-11-08 14:21:47 -08:00
parent 7e0295eba3
commit 5e1f8b3ede
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ class APIGenerator(object):
if model_type == 'uuid':
return types.uuid
if model_type == 'string':
return unicode
return six.text_type
if model_type == 'enum':
return types.create_enum_type(*values)
if model_type == 'integer':