From 815305b94864556c994934c7a7c830da7de1d94e Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Sun, 25 Feb 2024 17:40:19 +0100 Subject: Use Python raw strings for regex methods argument --- test/GenerateTests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/GenerateTests.py') diff --git a/test/GenerateTests.py b/test/GenerateTests.py index 1301bcd0..87b65659 100755 --- a/test/GenerateTests.py +++ b/test/GenerateTests.py @@ -35,7 +35,7 @@ if not os.path.isdir(args.tests) and not os.path.isfile(args.tests): sys.exit(1) #def normalize(line): -# match = re.match("((\s*)([A-Za-z]+)?(\s*)([-0-9.]+)(\s*)([A-Za-z]+)?)( (.+))?$", line) +# match = re.match(r'((\s*)([A-Za-z]+)?(\s*)([-0-9.]+)(\s*)([A-Za-z]+)?)( (.+))?$', line) # if match: # if match.group(3): # prefix = match.group(3) + " " + match.group(5) -- cgit v1.2.3