mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-02 02:01:47 +00:00
fix: follow-up for salvaged PR #8939
- Move test file to tests/hermes_cli/ (consistent with test layout) - Remove unused imports (os, pytest) from test file - Update _sanitize_env_lines docstring: now used on read + write paths
This commit is contained in:
parent
e469f3f3db
commit
cea34dc7ef
2 changed files with 1 additions and 4 deletions
|
|
@ -2413,7 +2413,7 @@ def load_env() -> Dict[str, str]:
|
|||
|
||||
|
||||
def _sanitize_env_lines(lines: list) -> list:
|
||||
"""Fix corrupted .env lines before writing.
|
||||
"""Fix corrupted .env lines before reading or writing.
|
||||
|
||||
Handles two known corruption patterns:
|
||||
1. Concatenated KEY=VALUE pairs on a single line (missing newline between
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue