mirror of https://github.com/proxmox/mirror_qemu
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: Paolo Bonzini <pbonzini@redhat.com>master
parent
a5e3cb3b90
commit
e4b6532cc0
|
@ -49,7 +49,7 @@ def serror(file, lnum, errtext):
|
||||||
|
|
||||||
def parse_directive(line):
|
def parse_directive(line):
|
||||||
"""Return first word of line, if any"""
|
"""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):
|
def parse_defheading(file, lnum, line):
|
||||||
"""Handle a DEFHEADING directive"""
|
"""Handle a DEFHEADING directive"""
|
||||||
|
|
Loading…
Reference in New Issue