mirror of
https://github.com/NohamR/pyzule-rw.git
synced 2026-11-25 23:08:01 +00:00
chore: add lipo
This commit is contained in:
9 files changed
+5
-1
No files matched your search
@@ -15,8 +15,11 @@ class Plist:
|
|||||||
def __getitem__(self, key: str) -> Any:
|
def __getitem__(self, key: str) -> Any:
|
||||||
return self.data.get(key, None)
|
return self.data.get(key, None)
|
||||||
|
|
||||||
|
def __setitem__(self, key: str, val: Any) -> None:
|
||||||
|
self.data[key] = val
|
||||||
|
|
||||||
def save(self) -> None:
|
def save(self) -> None:
|
||||||
with open(self.path, "w") as f:
|
with open(self.path, "wb") as f:
|
||||||
plistlib.dump(self.data, f)
|
plistlib.dump(self.data, f)
|
||||||
|
|
||||||
def remove(self, key: str) -> bool:
|
def remove(self, key: str) -> bool:
|
||||||
@@ -32,6 +35,7 @@ class Plist:
|
|||||||
return False
|
return False
|
||||||
except KeyError:
|
except KeyError:
|
||||||
self[key] = val
|
self[key] = val
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def remove_uisd(self) -> None:
|
def remove_uisd(self) -> None:
|
||||||
|
|||||||
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Executable
BIN
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user