From 869e167c06b5b8f87c079824bf31fde4782aaa4d Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Wed, 18 Dec 2024 12:40:57 +0100 Subject: [PATCH] xml2lcovutil.py: Add missing raw string prefix (#346) Symptom was: > bin/xml2lcovutil.py:262: SyntaxWarning: invalid escape sequence '\s' Signed-off-by: Sebastian Pipping --- bin/xml2lcovutil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/xml2lcovutil.py b/bin/xml2lcovutil.py index 2b1bad3..1b21164 100644 --- a/bin/xml2lcovutil.py +++ b/bin/xml2lcovutil.py @@ -259,8 +259,8 @@ def buildFunction(functions, objStack, currentObj, lastLine): 'hit' : hit}) # just collect the function/class name - ignore the params - parseLine = re.compile('(\s*)((def|class)\s*([^\( \t]+))?') - #parseLine = re.compile('(\s*)((def|class)\s*([^:]+)(:|$))?') + parseLine = re.compile(r'(\s*)((def|class)\s*([^\( \t]+))?') + #parseLine = re.compile(r'(\s*)((def|class)\s*([^:]+)(:|$))?') # no information about actual branch expressions/branch # coverage - only the percentage and number hit/not hit