Skip to content

Commit c41ce86

Browse files
committed
Fixed python 3.5 compatibility for the validator.
1 parent f498913 commit c41ce86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dynatademand/validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def __init__(self, ):
6868
'{}.json'.format(endpoint_name)
6969
))
7070
self.schemas[schema][endpoint_name] = json.loads(
71-
pkg_resources.resource_string(resource_package, resource_path)
71+
pkg_resources.resource_string(resource_package, resource_path).decode('utf-8')
7272
)
7373

7474
def _validate_object(self, schema_type, endpoint_name, data):

0 commit comments

Comments
 (0)