Skip to content
Snippets Groups Projects
Commit e4b6532c authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

docs/sphinx: avoid invalid escape in Python string


This is an error in Python 3.12; fix it by using a raw string literal.

Cc: qemu-stable@nongnu.org
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent a5e3cb3b
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ def serror(file, lnum, errtext):
def parse_directive(line):
"""Return first word of line, if any"""
return re.split('\W', line)[0]
return re.split(r'\W', line)[0]
def parse_defheading(file, lnum, line):
"""Handle a DEFHEADING directive"""
......
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