MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / load_include

Method load_include

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

Source from the content-addressed store, hash-verified

84 with open(path, encoding="utf-8") as file_:
85
86 def load_include(m):
87 fname = m.group(1)
88 sub_path = os.path.join(os.path.dirname(path), fname)
89 with open(sub_path, encoding="utf-8") as file_:
90 for i, line in enumerate(file_, 1):
91 buf.append((i, line))
92 return fname
93
94 def run_buf(fname, is_include):
95 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