refactor: use f-strings in remaining modules, scripts and tests

This commit is contained in:
Mark Paronyan committed 2026-10-03 19:44:02 +03:00
1 parent be943fcdf3
commit 3135c8b7e3
12 files changed
+55 -78

No files matched your search

+1 -1
View File
@@ -184,7 +184,7 @@ class ZipFile(zipfile.ZipFile):
"""
if not isinstance(comment, bytes):
raise TypeError("comment: expected bytes, got {}".format(type(comment)))
raise TypeError(f"comment: expected bytes, got {type(comment)}")
# check for valid comment length
if len(comment) >= zipfile.ZIP_MAX_COMMENT:
if self.debug: