MCPcopy Index your code
hub / github.com/python/cpython / startPrefixMapping

Method startPrefixMapping

Lib/xml/dom/pulldom.py:41–46  ·  view source on GitHub ↗
(self, prefix, uri)

Source from the content-addressed store, hash-verified

39 self._locator = locator
40
41 def startPrefixMapping(self, prefix, uri):
42 if not hasattr(self, '_xmlns_attrs'):
43 self._xmlns_attrs = []
44 self._xmlns_attrs.append((prefix or 'xmlns', uri))
45 self._ns_contexts.append(self._current_context.copy())
46 self._current_context[uri] = prefix or None
47
48 def endPrefixMapping(self, prefix):
49 self._current_context = self._ns_contexts.pop()

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected