aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/backends.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-06-06 12:17:59 -0400
committerEli Schwartz <eschwartz@archlinux.org>2021-06-07 16:51:47 -0400
commit3eb1da1fa2ea0b3420897afb2edd2e9c7b16eeb2 (patch)
treed5397e681d1a2ee383acbc3f43c904cc5f22ce74 /mesonbuild/backend/backends.py
parent2c71b63e77dd41ffc180a210fe9b226cef2d62cb (diff)
downloadmeson-3eb1da1fa2ea0b3420897afb2edd2e9c7b16eeb2.zip
meson-3eb1da1fa2ea0b3420897afb2edd2e9c7b16eeb2.tar.gz
meson-3eb1da1fa2ea0b3420897afb2edd2e9c7b16eeb2.tar.bz2
condense lines
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r--mesonbuild/backend/backends.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index 1f663b5..4c61abf 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -1257,8 +1257,7 @@ class Backend:
pdir = self.get_target_private_dir(target)
i = i.replace('@PRIVATE_DIR@', pdir)
else:
- err_msg = f'Argument {i} is of unknown type {type(i)}'
- raise RuntimeError(err_msg)
+ raise RuntimeError(f'Argument {i} is of unknown type {type(i)}')
cmd.append(i)
# Substitute the rest of the template strings
values = mesonlib.get_filenames_templates_dict(inputs, outputs)
@@ -1449,8 +1448,7 @@ class Backend:
outdir = os.path.join(incroot, h.get_install_subdir())
for f in h.get_sources():
if not isinstance(f, File):
- msg = f'Invalid header type {f!r} can\'t be installed'
- raise MesonException(msg)
+ raise MesonException(f'Invalid header type {f!r} can\'t be installed')
abspath = f.absolute_path(srcdir, builddir)
i = InstallDataBase(abspath, outdir, h.get_custom_install_mode(), h.subproject)
d.headers.append(i)