mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-08 22:08:45 +02:00
docs: gen-api-gtkdoc.py: fix SyntaxWarning with raw strings
Use raw strings for regex patterns to avoid the invalid escape sequence `SyntaxWarning`.
This commit is contained in:
parent
0b51b6b570
commit
7e21e27ca9
1 changed files with 3 additions and 3 deletions
|
|
@ -130,7 +130,7 @@ class DoxygenProcess(object):
|
|||
def __process_element(self, xml):
|
||||
s = ""
|
||||
|
||||
if xml.text and re.search('\S', xml.text):
|
||||
if xml.text and re.search(r'\S', xml.text):
|
||||
s += xml.text
|
||||
for n in xml.getchildren():
|
||||
if n.tag == "emphasis":
|
||||
|
|
@ -143,7 +143,7 @@ class DoxygenProcess(object):
|
|||
s += " - " + self.__process_element(n)
|
||||
if n.tag == "para":
|
||||
p = self.__process_element(n)
|
||||
if re.search('\S', p):
|
||||
if re.search(r'\S', p):
|
||||
s += p + "\n"
|
||||
if n.tag == "ref":
|
||||
s += n.text if n.text else ""
|
||||
|
|
@ -168,7 +168,7 @@ class DoxygenProcess(object):
|
|||
if n.tag == "htmlonly":
|
||||
s += ""
|
||||
if n.tail:
|
||||
if re.search('\S', n.tail):
|
||||
if re.search(r'\S', n.tail):
|
||||
s += n.tail
|
||||
if n.tag.startswith("param"):
|
||||
pass # parameters are handled separately in DoxyFunction::from_memberdef()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue