Code cleanup and improvements.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user