MCPcopy Index your code
hub / github.com/clips/pattern / _addXFN

Method _addXFN

pattern/web/feed/feedparser.py:1482–1487  ·  view source on GitHub ↗
(self, relationships, href, name)

Source from the content-addressed store, hash-verified

1480 _end_creativeCommons_license = _end_creativecommons_license
1481
1482 def _addXFN(self, relationships, href, name):
1483 context = self._getContext()
1484 xfn = context.setdefault('xfn', [])
1485 value = FeedParserDict({'relationships': relationships, 'href': href, 'name': name})
1486 if value not in xfn:
1487 xfn.append(value)
1488
1489 def _addTag(self, term, scheme, label):
1490 context = self._getContext()

Callers 1

popMethod · 0.95

Calls 4

_getContextMethod · 0.95
FeedParserDictClass · 0.85
setdefaultMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected