Skip to content

Commit 400cce7

Browse files
committed
build: T7828: use tomli instead of toml in the package build script
1 parent 4a49d49 commit 400cce7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/package-build/build.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import glob
1919
import shutil
2020
import sys
21-
import toml
21+
import tomli
2222
import os
2323

2424
from argparse import ArgumentParser
@@ -207,8 +207,8 @@ def copy_packages(repo_dir: Path) -> None:
207207
args = arg_parser.parse_args()
208208

209209
# Load package configuration
210-
with open(args.config, 'r') as file:
211-
config = toml.load(file)
210+
with open(args.config, 'rb') as file:
211+
config = tomli.load(file)
212212

213213
packages = config['packages']
214214
patch_dir = Path(args.patch_dir)

0 commit comments

Comments
 (0)