Skip to content

Commit

Permalink
fix missing f-strings (#1020)
Browse files Browse the repository at this point in the history
  • Loading branch information
branchvincent authored Jul 16, 2023
1 parent c3d8de9 commit d8ff189
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion scripts/update_package_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ def update_test_packages_cache(
packages_dir_hits.append(matches[0])
continue
elif len(matches) > 1:
print("ERROR: more than one match for {package_spec}.", file=sys.stderr)
print(
f"ERROR: more than one match for {package_spec}.", file=sys.stderr
)
print(f" {matches}", file=sys.stderr)
exit_code = 1
continue
Expand Down
4 changes: 2 additions & 2 deletions src/pipx/venv_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def _dfs_package_apps(
dep_dist = get_dist(dep_req.name, venv_inspect_info.distributions)
if dep_dist is None:
raise PipxError(
"Pipx Internal Error: cannot find package {dep_req.name!r} metadata."
f"Pipx Internal Error: cannot find package {dep_req.name!r} metadata."
)
app_names = get_apps(dep_dist, venv_inspect_info.bin_path)
if app_names:
Expand Down Expand Up @@ -246,7 +246,7 @@ def inspect_venv(
root_dist = get_dist(root_req.name, venv_inspect_info.distributions)
if root_dist is None:
raise PipxError(
"Pipx Internal Error: cannot find package {root_req.name!r} metadata."
f"Pipx Internal Error: cannot find package {root_req.name!r} metadata."
)
app_paths_of_dependencies = _dfs_package_apps(
root_dist, root_req, venv_inspect_info, app_paths_of_dependencies
Expand Down

0 comments on commit d8ff189

Please sign in to comment.