(name: str, default: Optional[List[str]] = None)
| 888 | for raw_line in raw_text.splitlines(): |
| 889 | line = raw_line.strip() |
| 890 | if not line or line.startswith("#") or "=" not in line: |
| 891 | continue |
| 892 | key, value = line.split("=", 1) |
| 893 | values[key.strip()] = value.strip().strip('"').strip("'") |
| 894 | |
| 895 | with _ENV_FILE_CACHE_LOCK: |
| 896 | _ENV_FILE_CACHE = (signature[0], signature[1], dict(values)) |
| 897 | # Copy on the way out so callers cannot mutate the cached mapping. |
| 898 | return dict(values) |
| 899 | |
| 900 |
no test coverage detected