mirror of
https://github.com/Klotzkette/claude-fuer-deutsches-recht
synced 2026-06-09 10:03:19 +00:00
Handle BOM input in liquidity generator
Read liquidity generator input with utf-8-sig so Windows-created JSON/YAML files with a BOM work.
This commit is contained in:
+1
-1
@@ -81,7 +81,7 @@ except ImportError:
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
def load_input(path: Path) -> dict[str, Any]:
|
||||
text = path.read_text(encoding="utf-8")
|
||||
text = path.read_text(encoding="utf-8-sig")
|
||||
if path.suffix.lower() in {".yaml", ".yml"}:
|
||||
if yaml is None:
|
||||
return load_simple_yaml(text, path)
|
||||
|
||||
+1
-1
@@ -81,7 +81,7 @@ except ImportError:
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
def load_input(path: Path) -> dict[str, Any]:
|
||||
text = path.read_text(encoding="utf-8")
|
||||
text = path.read_text(encoding="utf-8-sig")
|
||||
if path.suffix.lower() in {".yaml", ".yml"}:
|
||||
if yaml is None:
|
||||
return load_simple_yaml(text, path)
|
||||
|
||||
Reference in New Issue
Block a user