[issue34800] email.contentmanager raises error when policy.max_line_length==None or 0

2018-09-25 Thread silane
silane added the comment: I've made a pull request. Please look at it. And this is my first pull request, so please let me know if something wrong. https://github.com/python/cpython/pull/9578 -- ___ Python tracker <https://bugs.py

[issue34800] email.contentmanager raises error when policy.max_line_length==None or 0

2018-09-25 Thread silane
Change by silane : -- keywords: +patch pull_requests: +8980 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34800> ___ ___ Python-

[issue34800] email.contentmanager raises error when policy.max_line_length==None or 0

2018-09-25 Thread silane
Change by silane : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue34800> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue34800] email.contentmanager raises error when policy.max_line_length==None or 0

2018-09-25 Thread silane
New submission from silane : The document of the email.policy.Policy says max_line_length=0 or None indicates that no line wrapping should be done at all. But email.contentmanager doesn't handle this properly and raises error when calling set_content() with bytes or non-ascii str. ---Co