Skip to content

Commit

Permalink
xml2lcovutil.py: Add missing raw string prefix (#346)
Browse files Browse the repository at this point in the history
Symptom was:
> bin/xml2lcovutil.py:262: SyntaxWarning: invalid escape sequence '\s'

Signed-off-by: Sebastian Pipping <[email protected]>
  • Loading branch information
hartwork authored Dec 18, 2024
1 parent 07efdef commit 869e167
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/xml2lcovutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 869e167

Please sign in to comment.