about summary refs log tree commit diff stats
path: root/test/arch/mep/asm/ut_helpers_asm.py
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2024-01-07 22:48:37 +0100
committerGitHub <noreply@github.com>2024-01-07 22:48:37 +0100
commit3a2fb2472c0e8e01f84ed29be29a929775ed07ab (patch)
tree17718031046a1e912072db057993b478aa0ce06e /test/arch/mep/asm/ut_helpers_asm.py
parente9dee4eb5e8b8dc0b81e22598b754c8df29f1674 (diff)
parent2bf07ad1eb835e12b4b3dbaf42f71adf888a8cc1 (diff)
downloadfocaccia-miasm-3a2fb2472c0e8e01f84ed29be29a929775ed07ab.tar.gz
focaccia-miasm-3a2fb2472c0e8e01f84ed29be29a929775ed07ab.zip
Merge pull request #1464 from mrexodia/python312
Python 3.12 support
Diffstat (limited to 'test/arch/mep/asm/ut_helpers_asm.py')
-rw-r--r--test/arch/mep/asm/ut_helpers_asm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/arch/mep/asm/ut_helpers_asm.py b/test/arch/mep/asm/ut_helpers_asm.py
index 9f6dc5c2..2ebd0622 100644
--- a/test/arch/mep/asm/ut_helpers_asm.py
+++ b/test/arch/mep/asm/ut_helpers_asm.py
@@ -27,7 +27,7 @@ def check_instruction(mn_str, mn_hex, multi=None, offset=0):
     """Try to disassemble and assemble this instruction"""
 
     # Rename objdump registers names
-    mn_str = re.sub("\$([0-9]+)", lambda m: "R"+m.group(1), mn_str)
+    mn_str = re.sub(r"\$([0-9]+)", lambda m: "R"+m.group(1), mn_str)
     mn_str = mn_str.replace("$", "")
 
     # Disassemble