Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
26
def
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
32
def
prepare_release(
Callers
1
prepare_release
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected