Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Fix json.loads use in Python 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
JGoutin committed Mar 15, 2019
1 parent b10b030 commit bd21121
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/src/_accelize_drm.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ cdef class DrmManager:
except RuntimeError as exception:
_handle_exceptions(exception)

items = _loads(json_string)
items = _loads(bytes(json_string).decode())
if len(keys) > 1:
return items
return items[keys[0]]
2 changes: 1 addition & 1 deletion python/src/_accelize_drmc.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ cdef class DrmManager:
if return_code:
_raise_from_error(self._drm_manager.error_message, return_code)

items = _loads(json_out)
items = _loads(bytes(json_out).decode())
if len(keys) > 1:
return items
return items[keys[0]]

0 comments on commit bd21121

Please sign in to comment.