From c8b5fb3206488c563e985f054f404a979a61dd1f Mon Sep 17 00:00:00 2001 From: Kevin Ji <1146876+kevinji@users.noreply.github.com> Date: Mon, 28 Oct 2024 18:14:12 -0700 Subject: [PATCH] [computer-use-demo] Fix use of its (#126) --- computer-use-demo/computer_use_demo/tools/edit.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/computer-use-demo/computer_use_demo/tools/edit.py b/computer-use-demo/computer_use_demo/tools/edit.py index 3cca1f36..e538441f 100644 --- a/computer-use-demo/computer_use_demo/tools/edit.py +++ b/computer-use-demo/computer_use_demo/tools/edit.py @@ -133,15 +133,15 @@ async def view(self, path: Path, view_range: list[int] | None = None): init_line, final_line = view_range if init_line < 1 or init_line > n_lines_file: raise ToolError( - f"Invalid `view_range`: {view_range}. It's first element `{init_line}` should be within the range of lines of the file: {[1, n_lines_file]}" + f"Invalid `view_range`: {view_range}. Its first element `{init_line}` should be within the range of lines of the file: {[1, n_lines_file]}" ) if final_line > n_lines_file: raise ToolError( - f"Invalid `view_range`: {view_range}. It's second element `{final_line}` should be smaller than the number of lines in the file: `{n_lines_file}`" + f"Invalid `view_range`: {view_range}. Its second element `{final_line}` should be smaller than the number of lines in the file: `{n_lines_file}`" ) if final_line != -1 and final_line < init_line: raise ToolError( - f"Invalid `view_range`: {view_range}. It's second element `{final_line}` should be larger or equal than its first `{init_line}`" + f"Invalid `view_range`: {view_range}. Its second element `{final_line}` should be larger or equal than its first `{init_line}`" ) if final_line == -1: