Function
with_warn_for_invalid_lines
(mappings: Iterator[Binding])
Source from the content-addressed store, hash-verified
| 30 | |
| 31 | |
| 32 | def with_warn_for_invalid_lines(mappings: Iterator[Binding]) -> Iterator[Binding]: |
| 33 | for mapping in mappings: |
| 34 | if mapping.error: |
| 35 | logger.warning( |
| 36 | "python-dotenv could not parse statement starting at line %s", |
| 37 | mapping.original.line, |
| 38 | ) |
| 39 | yield mapping |
| 40 | |
| 41 | |
| 42 | class DotEnv: |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…