Skip to content
Snippets Groups Projects
Commit 22157f75 authored by Peter Lünenschloß's avatar Peter Lünenschloß
Browse files

escaped invalid escape sequence trigger

parent 5d8c7008
No related branches found
No related tags found
6 merge requests!685Release 2.4,!684Release 2.4,!567Release 2.2.1,!566Release 2.2,!501Release 2.1,!420Doc decorator
Pipeline #65564 passed with stage
in 1 minute and 44 seconds
......@@ -71,7 +71,7 @@ def get_parameters(section: list, indent_str: str) -> dict:
for k in range(len(section)):
# try catch a parameter definition start (implicitly assuming parameter names have no
# whitespaces):
para = re.match(indent_str + "(\S+) *:", section[k])
para = re.match(indent_str + r"(\S+) *:", section[k])
# got one ?
if para:
parameter_lines.append(k)
......@@ -127,7 +127,7 @@ def compose_docstring(
def clear_whitespace_tail(doc: list) -> list:
"""Clears tailing whitespace lines"""
for k in range(len(doc), 0, -1):
if not re.match("^\s*$", doc[k - 1]):
if not re.match(r"^\s*$", doc[k - 1]):
break
return doc[:k]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment