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

Method mapContentType

pattern/web/feed/feedparser.py:807–815  ·  view source on GitHub ↗
(self, contentType)

Source from the content-addressed store, hash-verified

805 return k
806
807 def mapContentType(self, contentType):
808 contentType = contentType.lower()
809 if contentType == 'text' or contentType == 'plain':
810 contentType = u'text/plain'
811 elif contentType == 'html':
812 contentType = u'text/html'
813 elif contentType == 'xhtml':
814 contentType = u'application/xhtml+xml'
815 return contentType
816
817 def trackNamespace(self, prefix, uri):
818 loweruri = uri.lower()

Callers 4

popMethod · 0.95
pushContentMethod · 0.95
_start_linkMethod · 0.95
_end_contentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected