diff options
author | Philipp Hörist <philipp@hoerist.com> | 2023-05-28 22:30:32 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2023-05-28 22:30:32 +0300 |
commit | af4223a99c11ac696f2bcd96b9567b6b92cf2c62 (patch) | |
tree | d511781de7ba5dc8eb2514fdfc59ee0f20b93c8f /mac | |
parent | 5a9362fd275e36ca931d4936eb7c40209741759b (diff) |
cq: Use f-string instead of `format` call
Diffstat (limited to 'mac')
-rwxr-xr-x | mac/makebundle.py | 2 | ||||
-rwxr-xr-x | mac/makeicns.py | 4 |
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', |