Skip to content

Commit aab474a

Browse files
authored
gh-51067: Remove trailing space in _Repacker.repack() error message (GH-152138)
Remove an accidental trailing space inside the `BadZipFile` exception string literal to ensure clean exception messages.
1 parent 22762c0 commit aab474a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Lib/zipfile/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1557,7 +1557,7 @@ def repack(self, zfile, removed=None):
15571557
zinfo.header_offset, entry_size, used_entry_size)
15581558
if used_entry_size > entry_size:
15591559
raise BadZipFile(
1560-
f"Overlapped entries: {zinfo.orig_filename!r} ")
1560+
f"Overlapped entries: {zinfo.orig_filename!r}")
15611561

15621562
if removed is not None and zinfo not in removed_zinfos:
15631563
used_entry_size = entry_size

0 commit comments

Comments
 (0)