| 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: |