MCPcopy Index your code
hub / github.com/kubernetes-client/python / subf

Function subf

doc/source/conf.py:27–31  ·  view source on GitHub ↗
(subs)

Source from the content-addressed store, hash-verified

25 base_url = 'https://github.com/kubernetes-client/python/blob/master/'
26
27 def subf(subs):
28 label, url = subs.groups()
29 if not url.startswith('http://') and not url.startswith('https://'):
30 url = base_url + url
31 return label + '(' + url + ')'
32
33 with open(filename, "r") as r:
34 data = re.sub("(\[[^\]]+\])\(([^\)]+)\)", subf, r.read())

Callers

nothing calls this directly

Calls 1

groupsMethod · 0.45

Tested by

no test coverage detected