fdf
This commit is contained in:
@@ -18,6 +18,7 @@ from typing import Any, Dict, Iterator, List, Optional, Sequence, cast
|
||||
from urllib.parse import urlparse
|
||||
|
||||
from SYS import pipeline as pipeline_context
|
||||
from SYS.config import get_nested_config_value as _get_nested
|
||||
from SYS.logger import debug, log
|
||||
from SYS.models import (
|
||||
DebugLogger,
|
||||
@@ -137,15 +138,6 @@ def _build_supported_domains() -> set[str]:
|
||||
return _SUPPORTED_DOMAINS
|
||||
|
||||
|
||||
def _get_nested(config: Dict[str, Any], *path: str) -> Any:
|
||||
cur: Any = config
|
||||
for key in path:
|
||||
if not isinstance(cur, dict):
|
||||
return None
|
||||
cur = cur.get(key)
|
||||
return cur
|
||||
|
||||
|
||||
def _parse_csv_list(value: Any) -> Optional[List[str]]:
|
||||
if value is None:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user