Skip to content

Commit

Permalink
remove all instances of click from project.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aidencullo authored and oz123 committed Jul 13, 2024
1 parent 5329af8 commit 29650ac
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions pipenv/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
system_which,
)
from pipenv.utils.toml import cleanup_toml, convert_toml_outline_tables
from pipenv.vendor import click, plette, tomlkit
from pipenv.vendor import plette, tomlkit

try:
# this is only in Python3.8 and later
Expand Down Expand Up @@ -360,11 +360,8 @@ def get_hashes_from_remote_index_urls(self, ireq, source):

except Exception:
if self.s.is_verbose():
click.echo(
"{}: Error generating hash for {}".format(
click.style("Warning", bold=True, fg="red"), ireq.name
),
err=True,
err.print(
f"[bold red]Warning[/bold red]: Error generating hash for {ireq.name}"
)
return None

Expand Down Expand Up @@ -1306,11 +1303,8 @@ def load_lockfile(self, expand_env_vars=True):
j = json.load(lock)
self._lockfile_newlines = preferred_newlines(lock)
except JSONDecodeError:
click.secho(
"Pipfile.lock is corrupted; ignoring contents.",
fg="yellow",
bold=True,
err=True,
err.print(
"[bold yellow]Pipfile.lock is corrupted; ignoring contents.[/bold yellow]"
)
j = {}
if not j.get("_meta"):
Expand Down

0 comments on commit 29650ac

Please sign in to comment.