Yu Zhao added the comment:
I'd like to work on this issue recently if it's still needed.
According to suggestions in PR:https://github.com/python/cpython/pull/29437, I
will:
* Add doc example for Thread function;
* Add some test cases for checking the validity of list args;
*
Change by Yu Zhao :
--
nosy: +CharlieZhao
nosy_count: 14.0 -> 15.0
pull_requests: +29065
pull_request: https://github.com/python/cpython/pull/30884
___
Python tracker
<https://bugs.python.org/issu
Change by Yu Zhao :
--
nosy: +CharlieZhao
nosy_count: 24.0 -> 25.0
pull_requests: +28723
pull_request: https://github.com/python/cpython/pull/30522
___
Python tracker
<https://bugs.python.org/issue1
Yu Zhao added the comment:
Ack (Per rfc2046 4.1.1). Since the _writeBody is set to _handle_text when no
proper handler exists, the problem should be fixed by adding a binary body
handler to BytesGenerator. Will create a separate issue to track the problem
Yu Zhao added the comment:
BytesParser.parse uses TextIOWrapper which by default translates universal
newlines to '\n'. This breaks binary payload.
Fix the problem by disabling the translation.
--
components: +email -Library (Lib)
nosy: +yu.z...@getcwd.com
Added
Yu Zhao added the comment:
This at least shouldn't be done for the BytesGenerator - it breaks binary data
integrity. IMO, doing it for the string Generator is not necessary either. The
linesep is a policy regarding to MIME syntax. It shouldn't be applied to the
payload. Imagine