Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pyfa-org/Pyfa
/ rreplace
Function
rreplace
scripts/dump_version.py:11–13 ·
view source on GitHub ↗
(s, old, new, occurrence)
Source
from the content-addressed store, hash-verified
9
import
os
10
11
def
rreplace(s, old, new, occurrence):
12
li = s.rsplit(old, occurrence)
13
return
new.join(li)
14
15
16
with
open(
"version.yml"
,
'r+'
)
as
file:
Callers
1
dump_version.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected