Skip to content

Commit

Permalink
use print instead of click.echo
Browse files Browse the repository at this point in the history
  • Loading branch information
notEvil committed Oct 11, 2023
1 parent 6da5114 commit 49dcea1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pipenv/cli/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
from pipenv.vendor.click import (
Choice,
argument,
echo,
edit,
group,
option,
Expand Down Expand Up @@ -769,7 +768,7 @@ def do_py(project, ctx=None, system=False, bare=False):
ctx.abort()

try:
(echo if bare else console.print)(project._which("python", allow_global=system))
(print if bare else console.print)(project._which("python", allow_global=system))
except AttributeError:
console.print("No project found!", style="red")
ctx.abort()

0 comments on commit 49dcea1

Please sign in to comment.