mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
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:
parent
ef1c70123c
commit
b9822cd5d1
@ -31,7 +31,7 @@ class FactionLoader:
|
||||
for f in files:
|
||||
try:
|
||||
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)
|
||||
logging.info("Loaded faction : " + str(f))
|
||||
except Exception:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user