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

Function tostringlist

Lib/xml/etree/ElementTree.py:1118–1128  ·  view source on GitHub ↗
(element, encoding=None, method=None, *,
                 xml_declaration=None, default_namespace=None,
                 short_empty_elements=True)

Source from the content-addressed store, hash-verified

1116 return len(self.lst)
1117
1118def tostringlist(element, encoding=None, method=None, *,
1119 xml_declaration=None, default_namespace=None,
1120 short_empty_elements=True):
1121 lst = []
1122 stream = _ListDataStream(lst)
1123 ElementTree(element).write(stream, encoding,
1124 xml_declaration=xml_declaration,
1125 default_namespace=default_namespace,
1126 method=method,
1127 short_empty_elements=short_empty_elements)
1128 return lst
1129
1130
1131def dump(elem):

Callers

nothing calls this directly

Calls 3

_ListDataStreamClass · 0.85
ElementTreeClass · 0.85
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…