From 3773a80b620ea083ce2a41abff1e78c5b35bed46 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 7 Mar 2020 13:21:38 +0000 Subject: [PATCH] uniquify names --- src/decoder/power_fields.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/decoder/power_fields.py b/src/decoder/power_fields.py index 0672e1ee..746cb27f 100644 --- a/src/decoder/power_fields.py +++ b/src/decoder/power_fields.py @@ -67,7 +67,9 @@ def decode_instruction_fields(fields): d[idx] = start idx += 1 start += 1 - res[f] = d + f = f.replace(",", "_") + unique = find_unique(res, f) + res[unique] = d return res -- 2.30.2