This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: email.contentmanager.raw_data_manager bytes handler breaks on 7bit cte
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: rmccampbell7
Priority: normal Keywords:

Created on 2020-01-07 22:27 by rmccampbell7, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg359555 - (view) Author: Ryan McCampbell (rmccampbell7) Date: 2020-01-07 22:27
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.
History
Date User Action Args
2022-04-11 14:59:25adminsetgithub: 83433
2020-01-07 22:27:03rmccampbell7create