Commit cd00711
committed
boot-qemu.py: Use re.MULTILINE instead of re.M
As suggested by the refurb rules from ruff:
FURB167 [*] Use of regular expression alias `re.M`
--> boot-qemu.py:140:93
|
138 | strings_stdout = strings.stdout.decode(encoding='utf-8', errors='ignore')
139 |
140 | if not (match := re.search(r'^Linux version (\d+\.\d+\.\d+)', strings_stdout, flags=re.M)):
| ^^^^
141 | raise RuntimeError(f"Could not find Linux version in {self.kernel}?")
|
help: Replace with `re.MULTILINE`
Signed-off-by: Nathan Chancellor <nathan@kernel.org>1 parent ae3982a commit cd00711
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
140 | 144 | | |
141 | 145 | | |
142 | 146 | | |
| |||
0 commit comments