Skip to content

Commit 869e167

Browse files
authored
xml2lcovutil.py: Add missing raw string prefix (#346)
Symptom was: > bin/xml2lcovutil.py:262: SyntaxWarning: invalid escape sequence '\s' Signed-off-by: Sebastian Pipping <[email protected]>
1 parent 07efdef commit 869e167

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/xml2lcovutil.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ def buildFunction(functions, objStack, currentObj, lastLine):
259259
'hit' : hit})
260260

261261
# just collect the function/class name - ignore the params
262-
parseLine = re.compile('(\s*)((def|class)\s*([^\( \t]+))?')
263-
#parseLine = re.compile('(\s*)((def|class)\s*([^:]+)(:|$))?')
262+
parseLine = re.compile(r'(\s*)((def|class)\s*([^\( \t]+))?')
263+
#parseLine = re.compile(r'(\s*)((def|class)\s*([^:]+)(:|$))?')
264264

265265
# no information about actual branch expressions/branch
266266
# coverage - only the percentage and number hit/not hit

0 commit comments

Comments
 (0)