refactor: use f-strings in controller modules

This commit is contained in:
Mark Paronyan committed 2026-10-03 19:44:01 +03:00
1 parent 552c0ca3e0
commit 7a9c600f54
9 files changed
+47 -86

No files matched your search

+2 -2
View File
@@ -79,7 +79,7 @@ class Snapshot:
.replace(tzinfo=None)
.strftime(DESCRIPTION_DATETIME_FORMAT)
)
description = "Snapshot '{}' taken on {}".format(self._name, date)
description = f"Snapshot '{self._name}' taken on {date}"
self._description = description
self._filename = filename
@@ -157,7 +157,7 @@ class Snapshot:
auto_open=self._project.auto_open,
auto_close=self._project.auto_close,
)
log.info("Snapshot '{}' restored in {:.4f} seconds".format(self.name, time.time() - begin))
log.info(f"Snapshot '{self.name}' restored in {time.time() - begin:.4f} seconds")
except (OSError, PermissionError) as e:
raise ControllerError(str(e))
await project.open()