style: Fix formatting in utils.py

This commit is contained in:
Paul Gauthier (aider) 2024-08-27 09:02:25 -07:00
parent 15521c41d1
commit 27e8780cbe

View file

@ -17,6 +17,7 @@ IMAGE_EXTENSIONS = {".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff", ".webp"}
def run_interactive_command(command):
try:
import pexpect
return run_interactive_command_pexpect(command)
except ImportError:
return run_interactive_command_subprocess(command)
@ -31,7 +32,7 @@ def run_interactive_command_subprocess(command):
text=True,
shell=True,
encoding=sys.stdout.encoding,
errors="replace"
errors="replace",
)
return result.returncode, result.stdout
except Exception as e: