From ad82438c448597b0c6470eef697a2c1b5f721ef1 Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Sat, 6 Jan 2024 18:08:46 +0100 Subject: Use regex literals for re.* functions --- test/arch/mep/asm/ut_helpers_asm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/arch/mep/asm/ut_helpers_asm.py') 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 -- cgit 1.4.1