

def _xml(self):
    '\n        Return etree element containing the XML representation of this content\n        types item, suitable for serialization to the ``[Content_Types].xml``\n        item for an OPC package. Although the sequence of elements is not\n        strictly significant, as an aid to testing and readability Default\n        elements are sorted by extension and Override elements are sorted by\n        partname.\n        '
    _types_elm = CT_Types.new()
    for ext in sorted(self._defaults.keys()):
        _types_elm.add_default(self, self._defaults[ext])
    for partname in sorted(self._overrides.keys()):
        _types_elm.add_override(partname, self._overrides[partname])
    return _types_elm

dataset/ETHPy150Open scanny/python-pptx/pptx/opc/pkgwriter.py _ContentTypesItem._xml/VarMisuse@40/188 `ext`->`self`