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

Function _resolveRelativeURIs

pattern/web/feed/feedparser.py:2567–2573  ·  view source on GitHub ↗
(htmlSource, baseURI, encoding, _type)

Source from the content-addressed store, hash-verified

2565 _BaseHTMLProcessor.unknown_starttag(self, tag, attrs)
2566
2567def _resolveRelativeURIs(htmlSource, baseURI, encoding, _type):
2568 if not _SGML_AVAILABLE:
2569 return htmlSource
2570
2571 p = _RelativeURIResolver(baseURI, encoding, _type)
2572 p.feed(htmlSource)
2573 return p.output()
2574
2575def _makeSafeAbsoluteURI(base, rel=None):
2576 # bail if ACCEPTABLE_URI_SCHEMES is empty

Callers 1

popMethod · 0.85

Calls 3

outputMethod · 0.80
feedMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…