refactor: simplify condition for running command with pexpect

This commit is contained in:
Paul Gauthier 2024-08-30 08:33:32 -07:00 committed by Paul Gauthier (aider)
parent e1c8a25e2e
commit 49925b892b

View file

@ -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)