MCPcopy Create free account
hub / github.com/theskumar/python-dotenv / with_warn_for_invalid_lines

Function with_warn_for_invalid_lines

src/dotenv/main.py:24–31  ·  view source on GitHub ↗
(mappings: Iterator[Binding])

Source from the content-addressed store, hash-verified

22
23
24def with_warn_for_invalid_lines(mappings: Iterator[Binding]) -> Iterator[Binding]:
25 for mapping in mappings:
26 if mapping.error:
27 logger.warning(
28 "Python-dotenv could not parse statement starting at line %s",
29 mapping.original.line,
30 )
31 yield mapping
32
33
34class DotEnv:

Callers 3

parseMethod · 0.85
set_keyFunction · 0.85
unset_keyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected