MCPcopy 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

9import os
10
11def rreplace(s, old, new, occurrence):
12 li = s.rsplit(old, occurrence)
13 return new.join(li)
14
15
16with open("version.yml", 'r+') as file:

Callers 1

dump_version.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected