diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-07-08 00:06:10 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2021-10-04 16:29:32 -0400 |
commit | d06cc042eb21bc16a4a5cc957a3615e5e3a9743a (patch) | |
tree | 0907391e3581d707770584f3416a87c0cea18f77 /mesonbuild/modules/python.py | |
parent | 47ae0b82f0483960fa7a3eabc68700b982688834 (diff) | |
download | meson-d06cc042eb21bc16a4a5cc957a3615e5e3a9743a.zip meson-d06cc042eb21bc16a4a5cc957a3615e5e3a9743a.tar.gz meson-d06cc042eb21bc16a4a5cc957a3615e5e3a9743a.tar.bz2 |
f-strings
Diffstat (limited to 'mesonbuild/modules/python.py')
-rw-r--r-- | mesonbuild/modules/python.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py index 2d5eaea..1f948cf 100644 --- a/mesonbuild/modules/python.py +++ b/mesonbuild/modules/python.py @@ -141,8 +141,7 @@ class PythonSystemDependency(SystemDependency, _PythonDependencyBase): elif pycc.startswith(('i686', 'i386')): return '32' else: - mlog.log('MinGW Python built with unknown CC {!r}, please file' - 'a bug'.format(pycc)) + mlog.log(f'MinGW Python built with unknown CC {pycc!r}, please file a bug') return None elif self.platform == 'win32': return '32' @@ -199,8 +198,7 @@ class PythonSystemDependency(SystemDependency, _PythonDependencyBase): return # Pyarch ends in '32' or '64' if arch != pyarch: - mlog.log('Need', mlog.bold(self.name), 'for {}-bit, but ' - 'found {}-bit'.format(arch, pyarch)) + mlog.log('Need', mlog.bold(self.name), f'for {arch}-bit, but found {pyarch}-bit') self.is_found = False return # This can fail if the library is not found |