From 71b556047df7a2af7f6d378ae49812d4c078f4ed Mon Sep 17 00:00:00 2001
From: Matt Davis <matteius@gmail.com>
Date: Sun, 22 Sep 2024 23:00:42 -0400
Subject: [PATCH] Update uninstall.py

---
 pipenv/routines/uninstall.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/pipenv/routines/uninstall.py b/pipenv/routines/uninstall.py
index 7b7afdffdc..7114bd0c23 100644
--- a/pipenv/routines/uninstall.py
+++ b/pipenv/routines/uninstall.py
@@ -5,6 +5,7 @@
 from pipenv.patched.pip._internal.build_env import get_runnable_pip
 from pipenv.project import Project
 from pipenv.routines.lock import do_lock
+from pipenv.utils import console 
 from pipenv.utils.dependencies import (
     expansive_install_req_from_line,
     get_lockfile_section_using_pipfile_category,
@@ -21,11 +22,11 @@
 
 def _uninstall_from_environment(project: Project, package, system=False):
     # Execute the uninstall command for the package
-    with project.environment.activated() as e:
-        if not e.ok:
+    with project.environment.activated() as is_active:
+        if not is_active:
             return False
 
-        click.secho(f"Uninstalling {package}...", fg="green", bold=True)
+        console.print(f"Uninstalling {package}...", style="bold green")
         cmd = [
             project_python(project, system=system),
             get_runnable_pip(),