mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
style: Fix formatting in utils.py
This commit is contained in:
parent
15521c41d1
commit
27e8780cbe
1 changed files with 2 additions and 1 deletions
|
@ -17,6 +17,7 @@ IMAGE_EXTENSIONS = {".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff", ".webp"}
|
||||||
def run_interactive_command(command):
|
def run_interactive_command(command):
|
||||||
try:
|
try:
|
||||||
import pexpect
|
import pexpect
|
||||||
|
|
||||||
return run_interactive_command_pexpect(command)
|
return run_interactive_command_pexpect(command)
|
||||||
except ImportError:
|
except ImportError:
|
||||||
return run_interactive_command_subprocess(command)
|
return run_interactive_command_subprocess(command)
|
||||||
|
@ -31,7 +32,7 @@ def run_interactive_command_subprocess(command):
|
||||||
text=True,
|
text=True,
|
||||||
shell=True,
|
shell=True,
|
||||||
encoding=sys.stdout.encoding,
|
encoding=sys.stdout.encoding,
|
||||||
errors="replace"
|
errors="replace",
|
||||||
)
|
)
|
||||||
return result.returncode, result.stdout
|
return result.returncode, result.stdout
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue