From 34aca41461a75a9b3bc7de5f46649fdf7e0b27e4 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Sun, 2 May 2021 14:33:24 -0700 Subject: [PATCH] More Python 3.9 compat. (cherry picked from commit 1c31cffe4b9c6a7f58489219a1c49ffd1aa9430c) --- game/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/db.py b/game/db.py index 809a43b1..609d406f 100644 --- a/game/db.py +++ b/game/db.py @@ -1521,7 +1521,7 @@ def unit_get_expanded_info(country_name: str, unit_type, request_type: str) -> s default_value = None faction_value = None with UNITINFOTEXT_PATH.open("r", encoding="utf-8") as fdata: - data = json.load(fdata, encoding="utf-8") + data = json.load(fdata) type_exists = data.get(original_name) if type_exists is not None: for faction in type_exists: