refactor: convert remaining percent formatting in log messages

This commit is contained in:
Mark Paronyan committed 2026-10-01 19:57:47 +03:00
1 parent 95ada23395
commit 74943b4c74
4 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -125,8 +125,8 @@ class CompressedRotatingFileHandler(RotatingFileHandler):
self.stream.close()
if self.backupCount > 0:
for i in range(self.backupCount - 1, 0, -1):
sfn = "%s.%d.gz" % (self.baseFilename, i)
dfn = "%s.%d.gz" % (self.baseFilename, i + 1)
sfn = f"{self.baseFilename}.{i}.gz"
dfn = f"{self.baseFilename}.{i + 1}.gz"
if os.path.exists(sfn):
if os.path.exists(dfn):
os.remove(dfn)