docs/sphinx: avoid invalid escape in Python string
PATCH 1/1 docs/sphinx: avoid invalid escape in Python string
This is an error in Python 3.12; fix it by using a raw string literal.
Signed-off-by Paolo Bonzini <[email protected]>
--- docs/sphinx/hxtool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
docs/sphinx/hxtool.py +1 -1
@@ -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"""
Signature · 1 line
2.41.0
Quoted 7 lines · Paolo Bonzini
This is an error in Python 3.12; fix it by using a raw string literal.
Signed-off-by Paolo Bonzini <[email protected]>--- docs/sphinx/hxtool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Philippe Mathieu-Daudé <[email protected]>