MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / load_include

Method load_include

test/base/test_tutorials.py:100–106  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

98 with open(path, encoding="utf-8") as file_:
99
100 def load_include(m):
101 fname = m.group(1)
102 sub_path = os.path.join(os.path.dirname(path), fname)
103 with open(sub_path, encoding="utf-8") as file_:
104 for i, line in enumerate(file_, 1):
105 buf.append((i, line))
106 return fname
107
108 def run_buf(fname, is_include):
109 if not buf:

Callers

nothing calls this directly

Calls 3

openFunction · 0.85
joinMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected