Convert byte to str for py3 compatibilty

Change-Id: I5d65508e659aa16ba0704bf1ee7d3d66a8a2d437
This commit is contained in:
Pradeep Kumar Singh 2015-08-04 18:30:37 +09:00
parent 619270d5aa
commit 53f3ddcb01

View File

@ -50,7 +50,7 @@ def load_schema(version, name, package=None):
schema_string = resource_string('schemas', version, '%s.json' % name,
package=package)
return json.loads(schema_string)
return json.loads(schema_string.decode('utf-8'))
def get_item_properties(item, fields, mixed_case_fields=[], formatters={}):