MCPcopy
hub / github.com/timqian/chinese-independent-blogs / check_nnl

Function check_nnl

linter.py:67–70  ·  view source on GitHub ↗
(csv_file_path)

Source from the content-addressed store, hash-verified

65 exit(1)
66
67def check_nnl(csv_file_path):
68 with open(csv_file_path, mode='r', encoding='utf-8') as file:
69 for i, line in enumerate(file, start=1):
70 assert line.endswith('\n'), f"Line {i} does not end with a newline"
71
72def main(csv_file_path):
73 check_csv(csv_file_path)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected