MCPcopy Index your code
hub / github.com/nodejs/node / ReadLinesFrom

Function ReadLinesFrom

tools/utils.py:36–45  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

34
35# Reads a .list file into an array of strings
36def ReadLinesFrom(name):
37 list = []
38 for line in open(name):
39 if '#' in line:
40 line = line[:line.find('#')]
41 line = line.strip()
42 if len(line) == 0:
43 continue
44 list.append(line)
45 return list
46
47
48def GuessOS():

Callers

nothing calls this directly

Calls 3

findMethod · 0.65
openFunction · 0.50
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…