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

Method _end_newlocation

pattern/web/feed/feedparser.py:1770–1776  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1768 self.push('newlocation', 1)
1769
1770 def _end_newlocation(self):
1771 url = self.pop('newlocation')
1772 context = self._getContext()
1773 # don't set newlocation if the context isn't right
1774 if context is not self.feeddata:
1775 return
1776 context['newlocation'] = _makeSafeAbsoluteURI(self.baseuri, url.strip())
1777
1778if _XML_AVAILABLE:
1779 class _StrictFeedParser(_FeedParserMixin, xml.sax.handler.ContentHandler):

Callers

nothing calls this directly

Calls 4

popMethod · 0.95
_getContextMethod · 0.95
_makeSafeAbsoluteURIFunction · 0.85
stripMethod · 0.80

Tested by

no test coverage detected