MCPcopy Index your code
hub / github.com/pathwaycom/pathway / remove_comments_from_file

Function remove_comments_from_file

python/pathway/internals/schema.py:962–965  ·  view source on GitHub ↗
(f: Iterable[str], comment_char: str | None)

Source from the content-addressed store, hash-verified

960 """
961
962 def remove_comments_from_file(f: Iterable[str], comment_char: str | None):
963 for line in f:
964 if line.lstrip()[0] != comment_char:
965 yield line
966
967 with open(path) as f:
968 csv_reader = csv.DictReader(

Callers 1

schema_from_csvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected