mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Put encoding arg in its proper location for maximum linter appeasal
This commit is contained in:
parent
1279784cc7
commit
4177ca882c
@ -21,7 +21,7 @@ class import3:
|
|||||||
else:
|
else:
|
||||||
with open (os.path.join(folder, "users.json"), encoding="utf-8") as f:
|
with open (os.path.join(folder, "users.json"), encoding="utf-8") as f:
|
||||||
user_json = json.loads(f.read())
|
user_json = json.loads(f.read())
|
||||||
with open (os.path.join(folder, "mc_settings.json", encoding="utf-8")) as f:
|
with open (os.path.join(folder, "mc_settings.json"), encoding="utf-8") as f:
|
||||||
servers_json = json.loads(f.read())
|
servers_json = json.loads(f.read())
|
||||||
self.import_users(user_json)
|
self.import_users(user_json)
|
||||||
self.import_servers(servers_json, self.controller)
|
self.import_servers(servers_json, self.controller)
|
||||||
|
Loading…
Reference in New Issue
Block a user