(allowlist_file: str)
| 2319 | |
| 2320 | |
| 2321 | def get_allowlist_entries(allowlist_file: str) -> Iterator[str]: |
| 2322 | def strip_comments(s: str) -> str: |
| 2323 | try: |
| 2324 | return s[: s.index("#")].strip() |
| 2325 | except ValueError: |
| 2326 | return s.strip() |
| 2327 | |
| 2328 | with open(allowlist_file) as f: |
| 2329 | for line in f: |
| 2330 | entry = strip_comments(line) |
| 2331 | if entry: |
| 2332 | yield entry |
| 2333 | |
| 2334 | |
| 2335 | class _Arguments: |
no test coverage detected
searching dependent graphs…