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

Method _isBase64

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

Source from the content-addressed store, hash-verified

1065 return attrsD.get(self._mapToStandardPrefix(name))
1066
1067 def _isBase64(self, attrsD, contentparams):
1068 if attrsD.get('mode', '') == 'base64':
1069 return 1
1070 if self.contentparams['type'].startswith(u'text/'):
1071 return 0
1072 if self.contentparams['type'].endswith(u'+xml'):
1073 return 0
1074 if self.contentparams['type'].endswith(u'/xml'):
1075 return 0
1076 return 1
1077
1078 def _itsAnHrefDamnIt(self, attrsD):
1079 href = attrsD.get('url', attrsD.get('uri', attrsD.get('href', None)))

Callers 1

pushContentMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected