style: Fix formatting and use consistent quotes in utils.py

This commit is contained in:
Paul Gauthier (aider) 2024-08-27 08:58:57 -07:00
parent 106a14cbdd
commit 206f3ae275

View file

@ -30,10 +30,10 @@ def run_interactive_command(command):
try:
# Check if /bin/sh exists
if os.path.exists('/bin/sh'):
if os.path.exists("/bin/sh"):
# Use /bin/sh -c if it exists
spawn_command = ['/bin/sh', '-c', command]
child = pexpect.spawn('/bin/sh', args=['-c', command], encoding="utf-8")
spawn_command = ["/bin/sh", "-c", command]
child = pexpect.spawn("/bin/sh", args=["-c", command], encoding="utf-8")
else:
# Fall back to the original behavior
spawn_command = command