MCPcopy Create free account
hub / github.com/clips/pattern / _itsAnHrefDamnIt

Method _itsAnHrefDamnIt

pattern/web/feed/feedparser.py:1078–1090  ·  view source on GitHub ↗
(self, attrsD)

Source from the content-addressed store, hash-verified

1076 return 1
1077
1078 def _itsAnHrefDamnIt(self, attrsD):
1079 href = attrsD.get('url', attrsD.get('uri', attrsD.get('href', None)))
1080 if href:
1081 try:
1082 del attrsD['url']
1083 except KeyError:
1084 pass
1085 try:
1086 del attrsD['uri']
1087 except KeyError:
1088 pass
1089 attrsD['href'] = href
1090 return attrsD
1091
1092 def _save(self, key, value, overwrite=False):
1093 context = self._getContext()

Callers 3

_start_linkMethod · 0.95
_start_generatorMethod · 0.95
_start_enclosureMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected