Skip to content

Commit

Permalink
Use f-strings for executable names
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg committed Mar 13, 2022
1 parent afda756 commit 4912fdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pip/_internal/utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,8 +557,8 @@ def protect_pip_from_modification_on_windows(modifying_pip: bool) -> None:
"""
pip_names = [
"pip",
"pip{}".format(sys.version_info[0]),
"pip{}.{}".format(*sys.version_info[:2]),
f"pip{sys.version_info.major}",
f"pip{sys.version_info.major}.{sys.version_info.minor}",
]

# See https://github.com/pypa/pip/issues/1299 for more discussion
Expand Down

0 comments on commit 4912fdf

Please sign in to comment.