summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-strategy/unknown-horizons/files/json_decoder.patch')
-rw-r--r--games-strategy/unknown-horizons/files/json_decoder.patch8
1 files changed, 8 insertions, 0 deletions
diff --git a/games-strategy/unknown-horizons/files/json_decoder.patch b/games-strategy/unknown-horizons/files/json_decoder.patch
new file mode 100644
index 0000000..bb355a4
--- /dev/null
+++ b/games-strategy/unknown-horizons/files/json_decoder.patch
@@ -0,0 +1,8 @@
+--- a/horizons/util/loaders/jsondecoder.py 2019-01-12 16:15:42.000000000 +0100
++++ b/horizons/util/loaders/jsondecoder.py 2022-09-04 02:23:14.570074926 +0200
+@@ -37,4 +37,4 @@
+ return newdict
+
+ with open(path, "r") as f:
+- return json.load(f, encoding="ascii", object_hook=_decode_dict)
++ return json.loads(f.read().encode("ascii"), object_hook=_decode_dict)