mirror of
https://github.com/NohamR/pyzule-rw.git
synced 2026-10-10 18:39:41 +00:00
chore: add lipo
This commit is contained in:
@@ -15,8 +15,11 @@ class Plist:
|
||||
def __getitem__(self, key: str) -> Any:
|
||||
return self.data.get(key, None)
|
||||
|
||||
def __setitem__(self, key: str, val: Any) -> None:
|
||||
self.data[key] = val
|
||||
|
||||
def save(self) -> None:
|
||||
with open(self.path, "w") as f:
|
||||
with open(self.path, "wb") as f:
|
||||
plistlib.dump(self.data, f)
|
||||
|
||||
def remove(self, key: str) -> bool:
|
||||
@@ -32,7 +35,8 @@ class Plist:
|
||||
return False
|
||||
except KeyError:
|
||||
self[key] = val
|
||||
return True
|
||||
|
||||
return True
|
||||
|
||||
def remove_uisd(self) -> None:
|
||||
if self.remove("UISupportedDevices"):
|
||||
|
||||
Reference in New Issue
Block a user