Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mac
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2023-05-28 22:30:32 +0300
committerPhilipp Hörist <philipp@hoerist.com>2023-05-28 22:30:32 +0300
commitaf4223a99c11ac696f2bcd96b9567b6b92cf2c62 (patch)
treed511781de7ba5dc8eb2514fdfc59ee0f20b93c8f /mac
parent5a9362fd275e36ca931d4936eb7c40209741759b (diff)
cq: Use f-string instead of `format` call
Diffstat (limited to 'mac')
-rwxr-xr-xmac/makebundle.py2
-rwxr-xr-xmac/makeicns.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/mac/makebundle.py b/mac/makebundle.py
index 87110edb0..299e5b2f5 100755
--- a/mac/makebundle.py
+++ b/mac/makebundle.py
@@ -25,7 +25,7 @@ if __name__ == '__main__':
version = version.decode().strip()
except CalledProcessError:
version = 'unknown'
- dmg_name = 'gajim-{}.dmg'.format(version)
+ dmg_name = f'gajim-{version}.dmg'
# the .spec has to be in the project root
run(['cp', 'mac/gajim.spec', 'gajim.spec'], check=True)
diff --git a/mac/makeicns.py b/mac/makeicns.py
index cadc5b6ee..20cafe1a6 100755
--- a/mac/makeicns.py
+++ b/mac/makeicns.py
@@ -16,8 +16,8 @@ def create_icns(icon_path: str) -> None:
for size_pt in [16, 32, 128, 256, 512]:
for scale in [1, 2]:
size_px = scale * size_pt
- scale_txt = '@{}'.format(scale) if scale != 1 else ''
- png_fn = 'icon_{}x{}{}.png'.format(size_pt, size_pt, scale_txt)
+ scale_txt = f'@{scale}' if scale != 1 else ''
+ png_fn = f'icon_{size_pt}x{size_pt}{scale_txt}.png'
png_path = os.path.join(tmpdir, png_fn)
run(['inkscape', '-z', '-e', png_path,
'-w', str(size_px), '-h', str(size_px), '-y', '0',