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

Class _ListDataStream

Lib/xml/etree/ElementTree.py:1101–1116  ·  view source on GitHub ↗

An auxiliary stream accumulating into a list reference.

Source from the content-addressed store, hash-verified

1099 return stream.getvalue()
1100
1101class _ListDataStream(io.BufferedIOBase):
1102 """An auxiliary stream accumulating into a list reference."""
1103 def __init__(self, lst):
1104 self.lst = lst
1105
1106 def writable(self):
1107 return True
1108
1109 def seekable(self):
1110 return True
1111
1112 def write(self, b):
1113 self.lst.append(b)
1114
1115 def tell(self):
1116 return len(self.lst)
1117
1118def tostringlist(element, encoding=None, method=None, *,
1119 xml_declaration=None, default_namespace=None,

Callers 1

tostringlistFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected