aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonlib
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-07-04 19:18:28 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2021-07-05 17:55:04 +0300
commitbd6f46e723813dfadaba1f7c87d3b0b751d05219 (patch)
tree4e5114bd99e249f474023c505b8c388c73bde255 /mesonbuild/mesonlib
parentb4b488f33cb6da1d840371039d6cf2c76f91ea9b (diff)
downloadmeson-bd6f46e723813dfadaba1f7c87d3b0b751d05219.zip
meson-bd6f46e723813dfadaba1f7c87d3b0b751d05219.tar.gz
meson-bd6f46e723813dfadaba1f7c87d3b0b751d05219.tar.bz2
condense lines
Diffstat (limited to 'mesonbuild/mesonlib')
-rw-r--r--mesonbuild/mesonlib/universal.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/mesonbuild/mesonlib/universal.py b/mesonbuild/mesonlib/universal.py
index d57c3e8..17f604d 100644
--- a/mesonbuild/mesonlib/universal.py
+++ b/mesonbuild/mesonlib/universal.py
@@ -330,11 +330,9 @@ class FileMode:
return -1
eg = 'rwxr-xr-x'
if not isinstance(perms_s, str):
- msg = f'Install perms must be a string. For example, {eg!r}'
- raise MesonException(msg)
+ raise MesonException(f'Install perms must be a string. For example, {eg!r}')
if len(perms_s) != 9 or not cls.symbolic_perms_regex.match(perms_s):
- msg = f'File perms {perms_s!r} must be exactly 9 chars. For example, {eg!r}'
- raise MesonException(msg)
+ raise MesonException(f'File perms {perms_s!r} must be exactly 9 chars. For example, {eg!r}')
perms = 0
# Owner perms
if perms_s[0] == 'r':
@@ -1451,8 +1449,7 @@ def _substitute_values_check_errors(command: T.List[str], values: T.Dict[str, st
# Error out if any input-derived templates are present in the command
match = iter_regexin_iter(inregex, command)
if match:
- m = f'Command cannot have {match!r}, since no input files were specified'
- raise MesonException(m)
+ raise MesonException(f'Command cannot have {match!r}, since no input files were specified')
else:
if len(values['@INPUT@']) > 1:
# Error out if @PLAINNAME@ or @BASENAME@ is present in the command