Skip to content

Commit

Permalink
style: use f-strings
Browse files Browse the repository at this point in the history
  • Loading branch information
henryborchers committed Dec 10, 2024
1 parent 1e5f134 commit 523992f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions uiucprescon/build/compiler_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ def get_clang_version() -> str:
if _cfg_target_split[:2] >= [10, 3] > cur_target_split[:2]:
my_msg = (
"$MACOSX_DEPLOYMENT_TARGET mismatch: "
'now "%s" but "%s" during configure;'
"must use 10.3 or later" % (cur_target, _cfg_target)
f'now "{cur_target}" but "{_cfg_target}" during configure;'
"must use 10.3 or later"
)
raise PlatformError(my_msg)
env = dict(os.environ, MACOSX_DEPLOYMENT_TARGET=cur_target)
Expand Down
2 changes: 1 addition & 1 deletion uiucprescon/build/conan_libs.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def test_binary_dependents(self, file_path: Path) -> None:
for location in locations:
dep_path = os.path.join(location, dep)
if os.path.exists(dep_path):
print("Found requirement: {}".format(dep_path))
print(f"Found requirement: {dep_path}")
break
else:
print(f"Couldn't find {dep}")
Expand Down

0 comments on commit 523992f

Please sign in to comment.