More Python 3.9 compat.

(cherry picked from commit 1c31cffe4b)
This commit is contained in:
Dan Albert
2021-05-02 14:33:24 -07:00
parent 7d83131173
commit 34aca41461

View File

@@ -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: