mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Replace vistir.misc.echo with click.secho
The former is simply a copy paste of `click.echo`. Since `click` has a much larger user base, it is likely to correct all bugs on all OSes faster.
This commit is contained in:
@@ -16,7 +16,7 @@ from pipenv.environments import is_type_checking
|
||||
from pipenv.utils.indexes import prepare_pip_source_args
|
||||
from pipenv.utils.processes import subprocess_run
|
||||
from pipenv.utils.shell import make_posix, normalize_path
|
||||
from pipenv.vendor import vistir
|
||||
from pipenv.vendor import click, vistir
|
||||
from pipenv.vendor.cached_property import cached_property
|
||||
from pipenv.vendor.packaging.utils import canonicalize_name
|
||||
|
||||
@@ -410,8 +410,8 @@ class Environment:
|
||||
paths[key] = make_posix(paths[key])
|
||||
return paths
|
||||
else:
|
||||
vistir.misc.echo(f"Failed to load paths: {c.stderr}", fg="yellow")
|
||||
vistir.misc.echo(f"Output: {c.stdout}", fg="yellow")
|
||||
click.echo(f"Failed to load paths: {c.stderr}", fg="yellow")
|
||||
click.echo(f"Output: {c.stdout}", fg="yellow")
|
||||
return None
|
||||
|
||||
def get_lib_paths(self):
|
||||
@@ -439,8 +439,8 @@ class Environment:
|
||||
paths[key] = make_posix(paths[key])
|
||||
return paths
|
||||
else:
|
||||
vistir.misc.echo(f"Failed to load paths: {c.stderr}", fg="yellow")
|
||||
vistir.misc.echo(f"Output: {c.stdout}", fg="yellow")
|
||||
click.secho(f"Failed to load paths: {c.stderr}", fg="yellow")
|
||||
click.secho(f"Output: {c.stdout}", fg="yellow")
|
||||
if not paths:
|
||||
if not self.prefix.joinpath("lib").exists():
|
||||
return {}
|
||||
@@ -499,8 +499,8 @@ class Environment:
|
||||
paths[key] = make_posix(paths[key])
|
||||
return paths
|
||||
else:
|
||||
vistir.misc.echo(f"Failed to load paths: {c.stderr}", fg="yellow")
|
||||
vistir.misc.echo(f"Output: {c.stdout}", fg="yellow")
|
||||
click.secho(f"Failed to load paths: {c.stderr}", fg="yellow")
|
||||
click.secho(f"Output: {c.stdout}", fg="yellow")
|
||||
return None
|
||||
|
||||
@cached_property
|
||||
|
||||
Reference in New Issue
Block a user