From f331aa145ab7f7e43b9af4ad52365f3d3329e672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Randy=20D=C3=B6ring?= <30527984+radoering@users.noreply.github.com> Date: Fri, 6 Oct 2023 17:06:10 +0200 Subject: [PATCH] coding style --- src/poetry/utils/shell.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/poetry/utils/shell.py b/src/poetry/utils/shell.py index 872d083583c..f8c413afd81 100644 --- a/src/poetry/utils/shell.py +++ b/src/poetry/utils/shell.py @@ -114,10 +114,9 @@ def activate(self, env: VirtualEnv) -> int | None: c.sendline(f"emulate bash -c '. {shlex.quote(str(activate_path))}'") elif self._name == "xonsh": c.sendline(f"vox activate {shlex.quote(str(env.path))}") - - # if this is nu, we don't want to send the activation command to the - # command line since we already ran it via the shell's invocation elif self._name == "nu": + # If this is nu, we don't want to send the activation command to the + # command line since we already ran it via the shell's invocation. pass else: if self._name in ["fish"]: