MCPcopy Create free account
hub / github.com/scanny/python-pptx / oxml_to_encoded_bytes

Function oxml_to_encoded_bytes

src/pptx/opc/oxml.py:36–44  ·  view source on GitHub ↗
(
    element: BaseOxmlElement,
    encoding: str = "utf-8",
    pretty_print: bool = False,
    standalone: bool | None = None,
)

Source from the content-addressed store, hash-verified

34
35
36def oxml_to_encoded_bytes(
37 element: BaseOxmlElement,
38 encoding: str = "utf-8",
39 pretty_print: bool = False,
40 standalone: bool | None = None,
41) -> bytes:
42 return etree.tostring(
43 element, encoding=encoding, pretty_print=pretty_print, standalone=standalone
44 )
45
46
47def oxml_tostring(

Callers 1

xml_file_bytesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…