MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / namelink

Method namelink

tools/python-3.11.9-amd64/Lib/pydoc.py:656–661  ·  view source on GitHub ↗

Make a link for an identifier, given name-to-URL mappings.

(self, name, *dicts)

Source from the content-addressed store, hash-verified

654 def grey(self, text): return '<span class="grey">%s</span>' % text
655
656 def namelink(self, name, *dicts):
657 """Make a link for an identifier, given name-to-URL mappings."""
658 for dict in dicts:
659 if name in dict:
660 return '<a href="%s">%s</a>' % (dict[name], name)
661 return name
662
663 def classlink(self, object, modname):
664 """Make a link for a class."""

Callers 2

markupMethod · 0.95
markupMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected