Skip to content

Commit

Permalink
Apply feedbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
sanspareilsmyn committed May 27, 2024
1 parent ad77f63 commit a1fe8d7
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions pipenv/utils/virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,18 +241,11 @@ def abort(msg=""):
if python:
range_pattern = r"^[<>]=?|!="
if re.search(range_pattern, python):
click.echo(
"{}: Python version range specifier '{}' is not supported. {}".format(
click.style("Error", fg="red", bold=True),
click.style(python, fg="cyan"),
click.style(
"Please use an absolute version number or specify the path to the Python executable on Pipfile.",
fg="yellow",
),
),
err=True,
err.print(
f"[bold red]Error[/bold red]: Python version range specifier '[cyan]{python}[/cyan]' is not supported. "
"[yellow]Please use an absolute version number or specify the path to the Python executable on Pipfile.[/yellow]"
)
abort()
sys.exit(1)

if not python:
python = project.s.PIPENV_DEFAULT_PYTHON_VERSION
Expand Down

0 comments on commit a1fe8d7

Please sign in to comment.