From fec7265b5c038d126edb91a0220dd7af9749e805 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 1 Feb 2022 01:56:04 -0500 Subject: [PATCH] flake8: use plain strings instead of f-strings when no variables used --- mesonbuild/interpreterbase/interpreterbase.py | 2 +- mesonbuild/mesonlib/vsenv.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonbuild/interpreterbase/interpreterbase.py b/mesonbuild/interpreterbase/interpreterbase.py index bd7d7f908..28211b051 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 b35902576..0d3776591 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'