MCPcopy Index your code
hub / github.com/RustPython/RustPython / _flush

Method _flush

Lib/xml/etree/ElementTree.py:1902–1914  ·  view source on GitHub ↗
(self, _join_text=''.join)

Source from the content-addressed store, hash-verified

1900 self._data.append(data)
1901
1902 def _flush(self, _join_text=''.join):
1903 data = _join_text(self._data)
1904 del self._data[:]
1905 if self._strip_text and not self._preserve_space[-1]:
1906 data = data.strip()
1907 if self._pending_start is not None:
1908 args, self._pending_start = self._pending_start, None
1909 qname_text = data if data and _looks_like_prefix_name(data) else None
1910 self._start(*args, qname_text)
1911 if qname_text is not None:
1912 return
1913 if data and self._root_seen:
1914 self._write(_escape_cdata_c14n(data))
1915
1916 def start_ns(self, prefix, uri):
1917 if self._ignored_depth:

Callers 5

start_nsMethod · 0.95
startMethod · 0.95
endMethod · 0.95
commentMethod · 0.95
piMethod · 0.95

Calls 4

_startMethod · 0.95
_escape_cdata_c14nFunction · 0.85
stripMethod · 0.45
_writeMethod · 0.45

Tested by

no test coverage detected