

def __init__(self, base_class=BaseHeader, default_class=UnstructuredHeader, use_default_map=True):
    'Create a header_factory that works with the Policy API.\n\n        base_class is the class that will be the last class in the created\n        header class\'s __bases__ list.  default_class is the class that will be\n        used if "name" (see __call__) does not appear in the registry.\n        use_default_map controls whether or not the default mapping of names to\n        specialized classes is copied in to the registry when the factory is\n        created.  The default is True.\n\n        '
    self.registry = {
        
    }
    self.base_class = base_class
    self.default_class = default_class
    if use_default_map:
        self.registry.update(_default_header_map)

dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/future/backports/email/headerregistry.py HeaderRegistry.__init__/original