Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
style(filesystem): move difflib import to top level
Re-bine0edb904bd33
diff --git a/nanobot/agent/tools/filesystem.py b/nanobot/agent/tools/filesystem.pyindex d9ff26510..e6c407e55 100644--- a/nanobot/agent/tools/filesystem.py+++ b/nanobot/agent/tools/filesystem.py@@ -1,5 +1,6 @@"""File system tools: read, write, edit."""+import difflibfrom pathlib import Pathfrom typing import Any@@ -169,8 +170,6 @@ class EditFileTool(Tool):@staticmethoddef _not_found_message(old_text: str, content: str, path: str) -> str:"""Build a helpful error when old_text is not found."""- import difflib-lines = content.splitlines(keepends=True)old_lines = old_text.splitlines(keepends=True)