We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3450f1 commit d3f9190Copy full SHA for d3f9190
Lib/zipfile/__init__.py
@@ -1709,8 +1709,7 @@ def remove(self, zinfo_or_arcname):
1709
zinfo = zinfo_or_arcname
1710
# make sure zinfo exists
1711
if zinfo not in self.filelist:
1712
- raise KeyError(
1713
- 'There is no item %r in the archive' % zinfo_or_arcname)
+ raise KeyError(f'There is no item {zinfo:r} in the archive')
1714
else:
1715
# get the info object
1716
zinfo = self.getinfo(zinfo_or_arcname)
0 commit comments