mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
refactor: Remove debug dump call in pipe_editor function
This commit is contained in:
parent
55d7397ff5
commit
686a32cbc0
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ import tempfile
|
||||||
|
|
||||||
from rich.console import Console
|
from rich.console import Console
|
||||||
|
|
||||||
from aider.dump import dump
|
from aider.dump import dump # noqa
|
||||||
|
|
||||||
DEFAULT_EDITOR_NIX = "vi"
|
DEFAULT_EDITOR_NIX = "vi"
|
||||||
DEFAULT_EDITOR_OS_X = "vim"
|
DEFAULT_EDITOR_OS_X = "vim"
|
||||||
|
@ -133,7 +133,7 @@ def pipe_editor(input_data="", suffix=None, editor=None):
|
||||||
command_parts = discover_editor(editor)
|
command_parts = discover_editor(editor)
|
||||||
command_parts.append(filepath)
|
command_parts.append(filepath)
|
||||||
command_str = " ".join(shlex.quote(part) for part in command_parts)
|
command_str = " ".join(shlex.quote(part) for part in command_parts)
|
||||||
dump(command_str)
|
|
||||||
subprocess.call(command_str, shell=True)
|
subprocess.call(command_str, shell=True)
|
||||||
with open(filepath, "r") as f:
|
with open(filepath, "r") as f:
|
||||||
output_data = f.read()
|
output_data = f.read()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue