MCPcopy Create free account
hub / github.com/ActiveState/code / write

Function write

recipes/Python/440647_Smart_Links/recipe-440647.py:43–52  ·  view source on GitHub ↗
(links)

Source from the content-addressed store, hash-verified

41 return links
42
43def write(links):
44 string = str()
45 for link in links:
46 string += '\t<h3>\n\t\t'
47 if link[0] is None:
48 string += link[1]
49 else:
50 string += '<a href="http://' + link[0] + '/">' + link[1] + '</a>'
51 string += '\n\t</h3>\n'
52 return string [:-1]
53
54def final(index, links, key):
55 key = '<!--' + key + '-->'

Callers 6

buildFunction · 0.70
saveMethod · 0.50
executeMethod · 0.50
recipe-437932.pyFile · 0.50
argumentsMethod · 0.50
ReturnMethod · 0.50

Calls 1

strFunction · 0.85

Tested by

no test coverage detected