mirror of
https://github.com/aclist/dztui.git
synced 2026-10-29 22:22:52 +01:00
feat: dynamic tooltip
This commit is contained in:
1 parent
600fea8a82
commit
82cddf261e
9 files changed
+61
-28
No files matched your search
+1
-7
@@ -16,12 +16,6 @@ def read_json(path: Path) -> dict:
|
||||
def write_json(data: dict, path: Path) -> None:
|
||||
try:
|
||||
j = json.dumps(data, indent=2)
|
||||
path.write_text(j)
|
||||
except Exception as e:
|
||||
raise e
|
||||
|
||||
# TODO: Path.write_text()
|
||||
try:
|
||||
with open(path, "w") as outfile:
|
||||
outfile.write(j)
|
||||
except OSError as e:
|
||||
raise e
|
||||
Reference in new issue
Block a user