1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-21 02:50:18 +03:00

Fixed lint errors

This commit is contained in:
Sebastian Baberowski 2025-02-28 22:47:40 +01:00
parent fe09062bd3
commit f6d1e2761b

View File

@ -622,6 +622,7 @@ def parse_banks(s: str) -> list[str]:
# TODO: do some sanity checking here
return banks
def parse_phase_paths(s: str) -> list[str]:
# Split on commas or whitespace here. Commas might be hard to parse visually.
paths = re.split(r',|\s+', s)
@ -2313,6 +2314,7 @@ def resolve_at_path(value: Optional[str]) -> Union[Path, str, None]:
return value
KNOWN_PHASES = (
'enter-initrd',
'leave-initrd',
@ -2322,6 +2324,7 @@ KNOWN_PHASES = (
'final',
)
def finalize_options(opts: argparse.Namespace) -> None:
# Figure out which syntax is being used, one of:
# ukify verb --arg --arg --arg