

def header_fetch_parse(self, name, value):
    "+\n        If the value has a 'name' attribute, it is returned to unmodified.\n        Otherwise the name and the value with any linesep characters removed\n        are passed to the header_factory method, and the resulting custom\n        header object is returned.  Any surrogateescaped bytes get turned\n        into the unicode unknown-character glyph.\n\n        "
    if hasattr(value, 'name'):
        return value
    return self.header_factory(name, ''.join(value.splitlines()))

dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/future/backports/email/policy.py EmailPolicy.header_fetch_parse/original