

def _add_content_type(self, partname, content_type):
    '\n        Add a content type for the part with *partname* and *content_type*,\n        using a default or override as appropriate.\n        '
    ext = partname.ext
    if ((ext.lower(), content_type) in default_content_types):
        self._defaults[ext] = content_type
    else:
        self._overrides[partname] = content_type

dataset/ETHPy150Open scanny/python-pptx/pptx/opc/pkgwriter.py _ContentTypesItem._add_content_type/original