Skip to content

Commit

Permalink
automated: linux: fix toml parsing in lmp-device-register
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mwasilew authored and roxell committed Apr 29, 2024
1 parent 2a6475c commit 29fbcbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion automated/linux/lmp-device-register/check_toml.py
Expand Up @@ -12,7 +12,7 @@ def main(toml_file):
import toml as tlib

with open(toml_file, "rb") as f:
tlib.load(f)
tlib.loads(f.read().decode())


if __name__ == "__main__":
Expand Down

0 comments on commit 29fbcbe

Please sign in to comment.