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

Method startPrefixMapping

pattern/web/feed/feedparser.py:1787–1794  ·  view source on GitHub ↗
(self, prefix, uri)

Source from the content-addressed store, hash-verified

1785 self.decls = {}
1786
1787 def startPrefixMapping(self, prefix, uri):
1788 if not uri:
1789 return
1790 # Jython uses '' instead of None; standardize on None
1791 prefix = prefix or None
1792 self.trackNamespace(prefix, uri)
1793 if prefix and uri == 'http://www.w3.org/1999/xlink':
1794 self.decls['xmlns:' + prefix] = uri
1795
1796 def startElementNS(self, name, qname, attrs):
1797 namespace, localname = name

Callers

nothing calls this directly

Calls 1

trackNamespaceMethod · 0.80

Tested by

no test coverage detected