MCPcopy Create free account
hub / github.com/DasyDong/developer-roadmap / get_lines

Function get_lines

code/run_file.py:8–11  ·  view source on GitHub ↗
(fp)

Source from the content-addressed store, hash-verified

6
7
8def get_lines(fp):
9 with open(fp, "r+") as f:
10 for i in f:
11 yield i
12
13
14def get_lines_by_mmap(fp):

Callers 1

run_get_linesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected