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

Method _getContext

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

Source from the content-addressed store, hash-verified

1294 _end_itunes_email = _end_email
1295
1296 def _getContext(self):
1297 if self.insource:
1298 context = self.sourcedata
1299 elif self.inimage and 'image' in self.feeddata:
1300 context = self.feeddata['image']
1301 elif self.intextinput:
1302 context = self.feeddata['textinput']
1303 elif self.inentry:
1304 context = self.entries[-1]
1305 else:
1306 context = self.feeddata
1307 return context
1308
1309 def _save_author(self, key, value, prefix='author'):
1310 context = self._getContext()

Callers 15

unknown_starttagMethod · 0.95
popMethod · 0.95
_saveMethod · 0.95
_start_imageMethod · 0.95
_start_textinputMethod · 0.95
_start_authorMethod · 0.95
_start_contributorMethod · 0.95
_start_dc_contributorMethod · 0.95
_end_nameMethod · 0.95
_end_widthMethod · 0.95
_end_heightMethod · 0.95
_save_authorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected