flake8: use plain strings instead of f-strings when no variables used

pull/10011/head
Eli Schwartz 3 years ago
parent 078175314a
commit fec7265b5c
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 2
      mesonbuild/interpreterbase/interpreterbase.py
  2. 2
      mesonbuild/mesonlib/vsenv.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)

@ -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'

Loading…
Cancel
Save