[New-bugs-announce] [issue39252] email.contentmanager.raw_data_manager bytes handler breaks on 7bit cte

Ryan McCampbell report at bugs.python.org
Tue Jan 7 17:27:03 EST 2020


New submission from Ryan McCampbell <rmccampbell7 at gmail.com>:

The email.contentmanager.set_bytes_content function which handles bytes content for raw_data_manager fails when passed cte="7bit" with an AttributeError: 'bytes' object has no attribute 'encode'. This is probably not a major use case since bytes are generally not for 7-bit data but the failure is clearly not intentional.

----------
components: Library (Lib)
messages: 359555
nosy: rmccampbell7
priority: normal
severity: normal
status: open
title: email.contentmanager.raw_data_manager bytes handler breaks on 7bit cte
type: behavior
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39252>
_______________________________________


More information about the New-bugs-announce mailing list