Skip to content

Commit

Permalink
Drop unnecessary escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanDeMeyer committed May 29, 2024
1 parent e9ae161 commit f6a4b69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkosi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2151,7 +2151,7 @@ def systemd_stub_binary(context: Context) -> Path:
def systemd_stub_version(context: Context, stub: Path) -> GenericVersion:
sdmagic = extract_pe_section(context, stub, ".sdmagic", context.workspace / "sdmagic")
sdmagic_text = sdmagic.read_text()
if version := re.match(r"#### LoaderInfo: systemd-stub (?P<version>[.~^a-zA-Z0-9-\+]+) ####", sdmagic_text):
if version := re.match(r"#### LoaderInfo: systemd-stub (?P<version>[.~^a-zA-Z0-9-+]+) ####", sdmagic_text):
return GenericVersion(version.group("version"))
die(f"Unable to determine systemd-stub version, found {sdmagic_text!r}")

Expand Down

0 comments on commit f6a4b69

Please sign in to comment.