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

Method start

Lib/xml/etree/ElementTree.py:1928–1943  ·  view source on GitHub ↗
(self, tag, attrs)

Source from the content-addressed store, hash-verified

1926 self._ns_stack[-1].append((uri, prefix))
1927
1928 def start(self, tag, attrs):
1929 if self._exclude_tags is not None and (
1930 self._ignored_depth or tag in self._exclude_tags):
1931 self._ignored_depth += 1
1932 return
1933 if self._data:
1934 self._flush()
1935
1936 new_namespaces = []
1937 self._declared_ns_stack.append(new_namespaces)
1938
1939 if self._qname_aware_tags is not None and tag in self._qname_aware_tags:
1940 # Need to parse text first to see if it requires a prefix declaration.
1941 self._pending_start = (tag, attrs, new_namespaces)
1942 return
1943 self._start(tag, attrs, new_namespaces)
1944
1945 def _start(self, tag, attrs, new_namespaces, qname_text=None):
1946 if self._exclude_attrs is not None and attrs:

Callers

nothing calls this directly

Calls 3

_flushMethod · 0.95
_startMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected