Code cleanup and improvements.

This commit is contained in:
2026-09-03 21:52:06 +02:00
parent ea323e3ab0
commit ecdea827ac
20 changed files with 312 additions and 213 deletions

View File

@@ -924,7 +924,7 @@ def _rewrite_wrapped_file(
output: Path,
patches: list[_BinaryPatch],
) -> tuple[str, int]:
ordered = sorted(patches, key=lambda patch: patch.offset)
ordered = sorted(patches, key=lambda item: item.offset)
previous_end = 0
for patch in ordered:
if patch.offset < previous_end: