aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/wrap
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-10-03 20:31:39 -0400
committerEli Schwartz <eschwartz@archlinux.org>2021-10-04 17:01:03 -0400
commit800c3462f0ce35502232aedb3a318c5579c7a504 (patch)
treeaf17102fe3bfdabbe14cf8b47df051d8e0fffa76 /mesonbuild/wrap
parentd06cc042eb21bc16a4a5cc957a3615e5e3a9743a (diff)
downloadmeson-800c3462f0ce35502232aedb3a318c5579c7a504.zip
meson-800c3462f0ce35502232aedb3a318c5579c7a504.tar.gz
meson-800c3462f0ce35502232aedb3a318c5579c7a504.tar.bz2
condense lines
Diffstat (limited to 'mesonbuild/wrap')
-rw-r--r--mesonbuild/wrap/wrap.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/mesonbuild/wrap/wrap.py b/mesonbuild/wrap/wrap.py
index 24d02df..e061c9e 100644
--- a/mesonbuild/wrap/wrap.py
+++ b/mesonbuild/wrap/wrap.py
@@ -149,8 +149,7 @@ class PackageDefinition:
raise WrapException(f'Missing sections in {self.basename}')
self.wrap_section = config.sections()[0]
if not self.wrap_section.startswith('wrap-'):
- m = f'{self.wrap_section!r} is not a valid first section in {self.basename}'
- raise WrapException(m)
+ raise WrapException(f'{self.wrap_section!r} is not a valid first section in {self.basename}')
self.type = self.wrap_section[5:]
self.values = dict(config[self.wrap_section])
@@ -179,8 +178,7 @@ class PackageDefinition:
try:
return self.values[key]
except KeyError:
- m = f'Missing key {key!r} in {self.basename}'
- raise WrapException(m)
+ raise WrapException(f'Missing key {key!r} in {self.basename}')
def get_directory(subdir_root: str, packagename: str) -> str:
fname = os.path.join(subdir_root, packagename + '.wrap')
@@ -387,8 +385,7 @@ class Resolver:
elif out == '':
# It is not a submodule, just a folder that exists in the main repository.
return False
- m = f'Unknown git submodule output: {out!r}'
- raise WrapException(m)
+ raise WrapException(f'Unknown git submodule output: {out!r}')
def get_file(self) -> None:
path = self.get_file_internal('source')