about summary refs log tree commit diff stats
path: root/test/arch/mep/asm/ut_helpers_asm.py
diff options
context:
space:
mode:
authorDuncan Ogilvie <mr.exodia.tpodt@gmail.com>2024-01-06 18:08:46 +0100
committerDuncan Ogilvie <mr.exodia.tpodt@gmail.com>2024-01-06 18:37:17 +0100
commitad82438c448597b0c6470eef697a2c1b5f721ef1 (patch)
treec758ce65f158c8d05b3066e15cb43d8ac81cfda5 /test/arch/mep/asm/ut_helpers_asm.py
parent0b0de2cbd1a5949cd8819899169446c5cf524cc3 (diff)
downloadfocaccia-miasm-ad82438c448597b0c6470eef697a2c1b5f721ef1.tar.gz
focaccia-miasm-ad82438c448597b0c6470eef697a2c1b5f721ef1.zip
Use regex literals for re.* functions
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