From 22b7898f20a43452114abc5edd9dc2a72e4c40b6 Mon Sep 17 00:00:00 2001 From: Peter-Simon Dieterich Date: Wed, 13 Mar 2024 11:22:17 +0100 Subject: [PATCH] cli: Fix cmd_parameter generation for nested for python 3.9 (#205) Signed-off-by: Peter-Simon Dieterich --- software/script/chameleon_cli_unit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/software/script/chameleon_cli_unit.py b/software/script/chameleon_cli_unit.py index bcd2239..db198b4 100644 --- a/software/script/chameleon_cli_unit.py +++ b/software/script/chameleon_cli_unit.py @@ -704,7 +704,7 @@ class HFMFNested(ReaderRequiredUnit): if nt_level == 0: # It's a staticnested tag? nt_uid_obj = self.cmd.mf1_static_nested_acquire( block_known, type_known, key_known, block_target, type_target) - cmd_param = f"{nt_uid_obj['uid']} {str(type_target)}" + cmd_param = f"{nt_uid_obj['uid']} {int(type_target)}" for nt_item in nt_uid_obj['nts']: cmd_param += f" {nt_item['nt']} {nt_item['nt_enc']}" tool_name = "staticnested"