Skip to content

Commit e6bc82a

Browse files
committed
Revert f-string
- Keep the convention as other methods.
1 parent e91347d commit e6bc82a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/zipfile/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1709,7 +1709,8 @@ 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(f'There is no item {zinfo!r} in the archive')
1712+
raise KeyError(
1713+
'There is no item %r in the archive' % zinfo_or_arcname)
17131714
else:
17141715
# get the info object
17151716
zinfo = self.getinfo(zinfo_or_arcname)

0 commit comments

Comments
 (0)