

def fold_binary(self, name, value):
    '+\n        The same as fold if cte_type is 7bit, except that the returned value is\n        bytes.\n\n        If cte_type is 8bit, non-ASCII binary data is converted back into\n        bytes.  Headers with binary data are not refolded, regardless of the\n        refold_header setting, since there is no way to know whether the binary\n        data consists of single byte characters or multibyte characters.\n\n        '
    folded = self._fold(name, value, refold_binary=(self.cte_type == '7bit'))
    return value.encode('ascii', 'surrogateescape')

dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/future/backports/email/policy.py EmailPolicy.fold_binary/VarMisuse@38/207 `folded`->`value`