https://github.com/python/cpython/commit/aab474a35b7d47aa3404db0fd5cb2c0314090941
commit: aab474a35b7d47aa3404db0fd5cb2c0314090941
branch: main
author: Danny Lin <[email protected]>
committer: gpshead <[email protected]>
date: 2026-10-11T17:13:52-07:00
summary:
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.
files:
M Lib/zipfile/__init__.py
diff --git a/Lib/zipfile/__init__.py b/Lib/zipfile/__init__.py
index d817bdd8769e7d7..87337478912e577 100644
--- a/Lib/zipfile/__init__.py
+++ b/Lib/zipfile/__init__.py
@@ -1557,7 +1557,7 @@ def repack(self, zfile, removed=None):
zinfo.header_offset, entry_size, used_entry_size)
if used_entry_size > entry_size:
raise BadZipFile(
- f"Overlapped entries: {zinfo.orig_filename!r} ")
+ f"Overlapped entries: {zinfo.orig_filename!r}")
if removed is not None and zinfo not in removed_zinfos:
used_entry_size = entry_size
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]