aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilosz Wasilewski <milosz.wasilewski@foundries.io>2024-04-26 13:26:16 +0100
committerAnders Roxell <anders.roxell@gmail.com>2024-04-29 13:04:50 +0200
commit29fbcbe949061a2091bebceb5477d157efbba739 (patch)
tree2106da4c5804b3f274a694b286130945febc3b08
parent2a6475c59449249cb281b8abff5b4df0d6407674 (diff)
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>
-rwxr-xr-xautomated/linux/lmp-device-register/check_toml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/automated/linux/lmp-device-register/check_toml.py b/automated/linux/lmp-device-register/check_toml.py
index 2296e640..4192a760 100755
--- a/automated/linux/lmp-device-register/check_toml.py
+++ b/automated/linux/lmp-device-register/check_toml.py
@@ -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__":