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 e91347d commit e6bc82aCopy full SHA for e6bc82a
1 file changed
Lib/zipfile/__init__.py
@@ -1709,7 +1709,8 @@ 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(f'There is no item {zinfo!r} in the archive')
+ raise KeyError(
1713
+ 'There is no item %r in the archive' % zinfo_or_arcname)
1714
else:
1715
# get the info object
1716
zinfo = self.getinfo(zinfo_or_arcname)
0 commit comments