aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/make_subarch_table_guidexml.py5
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())})