aboutsummaryrefslogtreecommitdiff
path: root/docs/sphinx/hxtool.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2023-10-16 08:22:56 +0200
committerMichael Tokarev <mjt@tls.msk.ru>2023-10-19 14:52:59 +0300
commit23b0010786f354845f8ff7760bc1af83fc160649 (patch)
treee5ecaf7bc18711f15ce003a3ad938dc944e3aa3c /docs/sphinx/hxtool.py
parentadbbddf90beec4219ee9fa0a4b6f7eb4f107989e (diff)
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> (cherry picked from commit e4b6532cc0a5518c0dea15eeca573829df9ec1df) Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'docs/sphinx/hxtool.py')
-rw-r--r--docs/sphinx/hxtool.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/sphinx/hxtool.py b/docs/sphinx/hxtool.py
index fb0649a3d5..9f6b9d87dc 100644
--- 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"""