Skip to content
Snippets Groups Projects
Commit 9b038bd1 authored by Ville Skyttä's avatar Ville Skyttä Committed by Martin Hjelmare
Browse files

Don't use deprecated encoding to json.loads (#28509)

Will be removed in 3.9, ignored in earlier supported versions.
parent 734e9828
Branches
Tags
No related merge requests found
...@@ -92,7 +92,7 @@ class HomeTemplate(Home): ...@@ -92,7 +92,7 @@ class HomeTemplate(Home):
def init_home(self, json_path=HOME_JSON): def init_home(self, json_path=HOME_JSON):
"""Init template with json.""" """Init template with json."""
self.init_json_state = json.loads(load_fixture(HOME_JSON), encoding="UTF-8") self.init_json_state = json.loads(load_fixture(HOME_JSON))
self.update_home(json_state=self.init_json_state, clearConfig=True) self.update_home(json_state=self.init_json_state, clearConfig=True)
return self return self
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment