Skip to content

Commit

Permalink
Prefer f-string literal
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Sep 21, 2024
1 parent 84ac6b9 commit 340d8f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyvips/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ def library_name(name, abi_number):
is_mac = sys.platform == 'darwin'

if is_windows:
return 'lib{0}-{1}.dll'.format(name, abi_number)
return f'lib{name}-{abi_number}.dll'
elif is_mac:
return 'lib{0}.{1}.dylib'.format(name, abi_number)
return f'lib{name}.{abi_number}.dylib'
else:
return 'lib{0}.so.{1}'.format(name, abi_number)
return f'lib{name}.so.{abi_number}'

# pull in our module version number
from .version import __version__
Expand Down

0 comments on commit 340d8f1

Please sign in to comment.