mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-25 03:41:08 -07:00
Use json.load() directly
This commit is contained in:
parent
bb7f9feb5e
commit
cff4dc8a0c
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ class CuraPackageManager(QObject):
|
|||
return
|
||||
|
||||
with open(self._package_management_file_path, "r", encoding = "utf-8") as f:
|
||||
management_dict = json.loads(f.read(), encoding = "utf-8")
|
||||
management_dict = json.load(f, encoding = "utf-8")
|
||||
|
||||
self._installed_package_dict = management_dict["installed"]
|
||||
self._to_remove_package_set = set(management_dict["to_remove"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue