Skip to content

use tomllib instead of tomli for TOML parsing #156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion apps/packages/app.attestation.auditor/87/props.toml

This file was deleted.

1 change: 0 additions & 1 deletion apps/packages/app.grapheneos.camera/81/props.toml

This file was deleted.

1 change: 0 additions & 1 deletion apps/packages/app.grapheneos.camera/82/props.toml

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion apps/packages/app.grapheneos.pdfviewer/26/props.toml

This file was deleted.

2 changes: 1 addition & 1 deletion apps/packages/app.vanadium.browser/710304433/props.toml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
channel = "beta"
channel = "stable"
2 changes: 1 addition & 1 deletion apps/packages/app.vanadium.browser/710304439/props.toml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
channel = "beta"
channel = "stable"
1 change: 0 additions & 1 deletion apps/packages/app.vanadium.config/72/props.toml

This file was deleted.

1 change: 0 additions & 1 deletion apps/packages/app.vanadium.config/73/props.toml

This file was deleted.

1 change: 0 additions & 1 deletion apps/packages/app.vanadium.config/75/props.toml

This file was deleted.

1 change: 0 additions & 1 deletion apps/packages/app.vanadium.config/76/props.toml

This file was deleted.

1 change: 0 additions & 1 deletion apps/packages/app.vanadium.config/77/props.toml

This file was deleted.

1 change: 0 additions & 1 deletion apps/packages/app.vanadium.config/78/props.toml

This file was deleted.

1 change: 0 additions & 1 deletion apps/packages/app.vanadium.config/79/props.toml

This file was deleted.

1 change: 0 additions & 1 deletion apps/packages/app.vanadium.config/80/props.toml

This file was deleted.

2 changes: 1 addition & 1 deletion apps/packages/app.vanadium.config/81/props.toml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
channel = "beta"
channel = "stable"
Original file line number Diff line number Diff line change
@@ -1 +1 @@
channel = "beta"
channel = "stable"
Original file line number Diff line number Diff line change
@@ -1 +1 @@
channel = "beta"
channel = "stable"
2 changes: 1 addition & 1 deletion apps/packages/app.vanadium.webview/710304433/props.toml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
channel = "beta"
channel = "stable"
2 changes: 1 addition & 1 deletion apps/packages/app.vanadium.webview/710304439/props.toml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
channel = "beta"
channel = "stable"
1 change: 1 addition & 0 deletions apps/packages/com.android.vending/84582130/props.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
channel = "beta"
1 change: 1 addition & 0 deletions apps/packages/com.google.android.gms/251434035/props.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
channel = "beta"
Original file line number Diff line number Diff line change
@@ -1 +1 @@
channel = "beta"
channel = "stable"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
channel = "beta"
18 changes: 0 additions & 18 deletions extract.sh

This file was deleted.

4 changes: 2 additions & 2 deletions generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
import shlex
import shutil
import subprocess
import tomli
import tomllib

def load_props(dir, name):
path = os.path.join(dir, name + ".toml")
if os.path.isfile(path):
with open(path, "rb") as f:
return tomli.load(f)
return tomllib.load(f)
else:
return {}

Expand Down