Python 3.9 compatibility.

This argument was removed and wasn't needed anyway since the file itself
is already opened UTF-8.
This commit is contained in:
Dan Albert 2021-05-02 14:31:08 -07:00
parent ef1c70123c
commit b9822cd5d1

View File

@ -31,7 +31,7 @@ class FactionLoader:
for f in files: for f in files:
try: try:
with f.open("r", encoding="utf-8") as fdata: with f.open("r", encoding="utf-8") as fdata:
data = json.load(fdata, encoding="utf-8") data = json.load(fdata)
factions[data["name"]] = Faction.from_json(data) factions[data["name"]] = Faction.from_json(data)
logging.info("Loaded faction : " + str(f)) logging.info("Loaded faction : " + str(f))
except Exception: except Exception: