aboutsummaryrefslogtreecommitdiff
path: root/modules/styles.py
diff options
context:
space:
mode:
authorAarni Koskela <akx@iki.fi>2023-05-09 22:17:58 +0300
committerAarni Koskela <akx@iki.fi>2023-05-09 22:25:39 +0300
commit3ba6c3c83c0983a025c7bddc08bb7f49481b3cbb (patch)
tree77b2bea31c0e94ac67fddf86fdc7cba65a24af2c /modules/styles.py
parent8fb16ceb288a93f6ecaa45a0afcb3db718333e3e (diff)
Fix up string formatting/concatenation to f-strings where feasible
Diffstat (limited to 'modules/styles.py')
-rw-r--r--modules/styles.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/styles.py b/modules/styles.py
index 9ed85991..11642075 100644
--- a/modules/styles.py
+++ b/modules/styles.py
@@ -74,7 +74,7 @@ class StyleDatabase:
def save_styles(self, path: str) -> None:
# Always keep a backup file around
if os.path.exists(path):
- shutil.copy(path, path + ".bak")
+ shutil.copy(path, f"{path}.bak")
fd = os.open(path, os.O_RDWR|os.O_CREAT)
with os.fdopen(fd, "w", encoding="utf-8-sig", newline='') as file: