Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ final
Function
final
recipes/Python/440647_Smart_Links/recipe-440647.py:54–57 ·
view source on GitHub ↗
(index, links, key)
Source
from the content-addressed store, hash-verified
52
return
string [:-1]
53
54
def
final(index, links, key):
55
key =
'<!--'
+ key +
'-->'
56
index = index.replace(key, links)
57
return
index
58
59
def
html(string):
60
print
'Content-type: text/html'
Callers
1
build
Function · 0.70
Calls
1
replace
Method · 0.45
Tested by
no test coverage detected