MCPcopy
hub / github.com/cjolowicz/cookiecutter-hypermodern-python / replace_text

Function replace_text

tools/prepare-github-release.py:26–29  ·  view source on GitHub ↗
(path: Path, old: str, new: str)

Source from the content-addressed store, hash-verified

24
25
26def replace_text(path: Path, old: str, new: str):
27 text = path.read_text()
28 text = text.replace(old, new)
29 path.write_text(text)
30
31
32def prepare_release(

Callers 1

prepare_releaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected