Fix py33 compatibility errors
Part of blueprint py33 Change-Id: Ib24bb7e5147a6d241d0392889832ed34e1c856eb
This commit is contained in:
committed by
Ilya Shakhat
parent
5ad1cbe79c
commit
8ab2a069b4
@@ -33,7 +33,7 @@ CNT_EMPTY_MEMBERS = 50
|
||||
|
||||
|
||||
def _convert_str_fields_to_unicode(result):
|
||||
for field, value in result.iteritems():
|
||||
for field, value in six.iteritems(result):
|
||||
if type(value) is str:
|
||||
try:
|
||||
value = six.text_type(value, 'utf8')
|
||||
|
||||
Reference in New Issue
Block a user