More Python 3.9 compat.

This commit is contained in:
Dan Albert 2021-05-02 14:33:24 -07:00
parent b9822cd5d1
commit 1c31cffe4b

View File

@ -1548,7 +1548,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: