MCPcopy
hub / github.com/pandas-dev/pandas / process_tempita

Function process_tempita

generate_pxi.py:7–13  ·  view source on GitHub ↗
(pxifile, outfile)

Source from the content-addressed store, hash-verified

5
6
7def process_tempita(pxifile, outfile) -> None:
8 with open(pxifile, encoding="utf-8") as f:
9 tmpl = f.read()
10 pyxcontent = Tempita.sub(tmpl)
11
12 with open(outfile, "w", encoding="utf-8") as f:
13 f.write(pyxcontent)
14
15
16def main() -> None:

Callers 1

mainFunction · 0.85

Calls 3

readMethod · 0.45
subMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected