Skip to content

Commit d3f9190

Browse files
danny0838merwok
andauthored
Update Lib/zipfile/__init__.py
Co-authored-by: Éric <[email protected]>
1 parent f3450f1 commit d3f9190

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/zipfile/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1709,8 +1709,7 @@ def remove(self, zinfo_or_arcname):
17091709
zinfo = zinfo_or_arcname
17101710
# make sure zinfo exists
17111711
if zinfo not in self.filelist:
1712-
raise KeyError(
1713-
'There is no item %r in the archive' % zinfo_or_arcname)
1712+
raise KeyError(f'There is no item {zinfo:r} in the archive')
17141713
else:
17151714
# get the info object
17161715
zinfo = self.getinfo(zinfo_or_arcname)

0 commit comments

Comments
 (0)