MCPcopy Index your code
hub / github.com/pyload/pyload / _mapToStandardPrefix

Method _mapToStandardPrefix

module/lib/feedparser.py:988–995  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

986 return 1
987
988 def _mapToStandardPrefix(self, name):
989 colonpos = name.find(':')
990 if colonpos <> -1:
991 prefix = name[:colonpos]
992 suffix = name[colonpos+1:]
993 prefix = self.namespacemap.get(prefix, prefix)
994 name = prefix + ':' + suffix
995 return name
996
997 def _getAttribute(self, attrsD, name):
998 return attrsD.get(self._mapToStandardPrefix(name))

Callers 1

_getAttributeMethod · 0.95

Calls 2

findMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected