diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2023-10-16 08:22:56 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-10-17 15:20:53 +0200 |
commit | e4b6532cc0a5518c0dea15eeca573829df9ec1df (patch) | |
tree | 401bf22833845912abad1eb1971a9fa802ea0e34 /docs | |
parent | a5e3cb3b90a62a42cd19ad9a20ca25c7df1dc3da (diff) | |
download | qemu-e4b6532cc0a5518c0dea15eeca573829df9ec1df.zip qemu-e4b6532cc0a5518c0dea15eeca573829df9ec1df.tar.gz qemu-e4b6532cc0a5518c0dea15eeca573829df9ec1df.tar.bz2 |
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>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/sphinx/hxtool.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/sphinx/hxtool.py b/docs/sphinx/hxtool.py index fb0649a..9f6b9d8 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""" |