projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5e3cb3
)
docs/sphinx: avoid invalid escape in Python string
author
Paolo Bonzini
<pbonzini@redhat.com>
Mon, 16 Oct 2023 06:22:56 +0000
(08:22 +0200)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Tue, 17 Oct 2023 13:20:53 +0000
(15:20 +0200)
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>
docs/sphinx/hxtool.py
patch
|
blob
|
history
diff --git
a/docs/sphinx/hxtool.py
b/docs/sphinx/hxtool.py
index fb0649a3d5bc1012cad8233cff6692f16fc50a72..9f6b9d87dccf5cd81361f8cd4d9bb1447bea45ef 100644
(file)
--- a/
docs/sphinx/hxtool.py
+++ b/
docs/sphinx/hxtool.py
@@
-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"""