aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-02-01 01:56:04 -0500
committerEli Schwartz <eschwartz@archlinux.org>2022-02-16 18:19:12 -0500
commitfec7265b5c038d126edb91a0220dd7af9749e805 (patch)
tree321b4c04034201c043c4e5ac78190e51262bad59 /mesonbuild
parent078175314a7b0a2b7db00991e5161d9432d96213 (diff)
downloadmeson-fec7265b5c038d126edb91a0220dd7af9749e805.zip
meson-fec7265b5c038d126edb91a0220dd7af9749e805.tar.gz
meson-fec7265b5c038d126edb91a0220dd7af9749e805.tar.bz2
flake8: use plain strings instead of f-strings when no variables used
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/interpreterbase/interpreterbase.py2
-rw-r--r--mesonbuild/mesonlib/vsenv.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/interpreterbase/interpreterbase.py b/mesonbuild/interpreterbase/interpreterbase.py
index bd7d7f9..28211b0 100644
--- a/mesonbuild/interpreterbase/interpreterbase.py
+++ b/mesonbuild/interpreterbase/interpreterbase.py
@@ -526,7 +526,7 @@ class InterpreterBase:
self.argument_depth += 1
reduced_pos = [self.evaluate_statement(arg) for arg in args.arguments]
if any(x is None for x in reduced_pos):
- raise InvalidArguments(f'At least one value in the arguments is void.')
+ raise InvalidArguments('At least one value in the arguments is void.')
reduced_kw: T.Dict[str, InterpreterObject] = {}
for key, val in args.kwargs.items():
reduced_key = key_resolver(key)
diff --git a/mesonbuild/mesonlib/vsenv.py b/mesonbuild/mesonlib/vsenv.py
index b359025..0d37765 100644
--- a/mesonbuild/mesonlib/vsenv.py
+++ b/mesonbuild/mesonlib/vsenv.py
@@ -65,7 +65,7 @@ def _setup_vsenv(force: bool) -> bool:
bat_info = json.loads(bat_json)
if not bat_info:
# VS installer instelled but not VS itself maybe?
- raise MesonException(f'Could not parse vswhere.exe output')
+ raise MesonException('Could not parse vswhere.exe output')
bat_root = pathlib.Path(bat_info[0]['installationPath'])
if platform.machine() == 'ARM64':
bat_path = bat_root / 'VC/Auxiliary/Build/vcvarsx86_arm64.bat'