]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/tasks: fix SyntaxWarning for invalid escape sequences in vstart_runner.py 66694/head
authorKefu Chai <k.chai@proxmox.com>
Fri, 19 Dec 2025 07:05:07 +0000 (15:05 +0800)
committerKefu Chai <k.chai@proxmox.com>
Fri, 19 Dec 2025 07:08:15 +0000 (15:08 +0800)
commitf87e567000e5427a86b1ee53fe984389dbe5aa72
tree2558ef68beff83bea2927b4e0b38343825393622
parent7b600b03c96ad8f2c85987f0f4d48f95b9a5a373
qa/tasks: fix SyntaxWarning for invalid escape sequences in vstart_runner.py

Convert regex patterns to raw strings to fix the following warnings:
- Line 673: SyntaxWarning: invalid escape sequence '\s'
- Line 798: SyntaxWarning: invalid escape sequence '\.'
- Line 905: SyntaxWarning: invalid escape sequence '\['
- Line 911: SyntaxWarning: invalid escape sequence '\s'
- Line 1072: SyntaxWarning: invalid escape sequence '\['
- Line 1185: SyntaxWarning: invalid escape sequence '\('

All regex strings now use the r"..." prefix to treat backslashes
literally, which is the standard practice for regular expressions
in Python.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
qa/tasks/vstart_runner.py