Skip to content

Commit 29fbcbe

Browse files
mwasilewroxell
authored andcommitted
automated: linux: fix toml parsing in lmp-device-register
Python libraries toml and tomllib are not API compatible. This patch switches the code to use a part of API that is the same in both libraries. Signed-off-by: Milosz Wasilewski <milosz.wasilewski@foundries.io>
1 parent 2a6475c commit 29fbcbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

automated/linux/lmp-device-register/check_toml.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def main(toml_file):
1212
import toml as tlib
1313

1414
with open(toml_file, "rb") as f:
15-
tlib.load(f)
15+
tlib.loads(f.read().decode())
1616

1717

1818
if __name__ == "__main__":

0 commit comments

Comments
 (0)