From 07ba52e90cff55fa987a6f85fe427894c7fdeb48 Mon Sep 17 00:00:00 2001 From: Philip Ridout Date: Thu, 7 Sep 2017 21:27:11 +0100 Subject: [PATCH] Applied tgc's patch --- openlp/core/common/json.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/openlp/core/common/json.py b/openlp/core/common/json.py index d25add283..f0e45ee2a 100644 --- a/openlp/core/common/json.py +++ b/openlp/core/common/json.py @@ -40,7 +40,8 @@ class OpenLPJsonDecoder(JSONDecoder): self.kwargs = kwargs if object_hook is None: object_hook = self.custom_object_hook - super().__init__(object_hook, parse_float, parse_int, parse_constant, strict, object_pairs_hook) + super().__init__(object_hook=object_hook, parse_float=parse_float, parse_int=parse_int, + parse_constant=parse_constant, strict=strict, object_pairs_hook=object_pairs_hook) def custom_object_hook(self, obj): """ @@ -71,7 +72,9 @@ class OpenLPJsonEncoder(JSONEncoder): self.kwargs = kwargs if default is None: default = self.custom_default - super().__init__(skipkeys, ensure_ascii, check_circular, allow_nan, sort_keys, indent, separators, default) + super().__init__(skipkeys=skipkeys, ensure_ascii=ensure_ascii, check_circular=check_circular, + allow_nan=allow_nan, sort_keys=sort_keys, indent=indent, separators=separators, + default=default) def custom_default(self, obj): """