From 49925b892be003b39629fd24bfd437957210057b Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 30 Aug 2024 08:33:32 -0700 Subject: [PATCH] refactor: simplify condition for running command with pexpect --- aider/run_cmd.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/aider/run_cmd.py b/aider/run_cmd.py index e4aa843cb..735c269e0 100644 --- a/aider/run_cmd.py +++ b/aider/run_cmd.py @@ -10,12 +10,7 @@ import pexpect def run_cmd(command): import sys - if ( - False - and sys.stdin.isatty() - and hasattr(pexpect, "spawn") - and platform.system() != "Windows" - ): + if sys.stdin.isatty() and hasattr(pexpect, "spawn") and platform.system() != "Windows": return run_cmd_pexpect(command) return run_cmd_subprocess(command)