diff options
author | Matt Turner <mattst88@gentoo.org> | 2022-01-30 12:22:43 -0800 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2022-01-30 15:17:14 -0800 |
commit | 67e93e47d30280594c109b8153a83f0a19c027e5 (patch) | |
tree | 7a8cc1722b4a09002753fbafc80c5c47ccf21e36 /doc | |
parent | catalyst: generate .sha256 file if any digest is enabled (diff) | |
download | catalyst-67e93e47d30280594c109b8153a83f0a19c027e5.tar.gz catalyst-67e93e47d30280594c109b8153a83f0a19c027e5.tar.bz2 catalyst-67e93e47d30280594c109b8153a83f0a19c027e5.zip |
catalyst: Switch to tomli
The Python community is coalescing around tomli, and tomli is likely to
be integrated into the standard library per PEP680.
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'doc')
-rwxr-xr-x | doc/make_subarch_table_guidexml.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/make_subarch_table_guidexml.py b/doc/make_subarch_table_guidexml.py index 67ed3ccc..3c03f90c 100755 --- a/doc/make_subarch_table_guidexml.py +++ b/doc/make_subarch_table_guidexml.py @@ -5,7 +5,7 @@ import pathlib import sys import textwrap -import toml +import tomli def write_guidexml(arch_to_subarch): @@ -40,7 +40,8 @@ def main(_argv): p = pathlib.Path('arch') for file in p.glob('*.toml'): - data = toml.load(file) + with file.open('rb') as f: + data = tomli.load(f) for arch in [x for x in data if x != 'setarch']: arch_to_subarch.update({arch: list(data[arch].keys())}) |