New submission from Vajrasky Kok:
Lib/email/message.py, line 665 & 666:
param = msg.get_param('foo')
param = email.utils.collapse_rfc2231_value(rawparam)
Where does rawparam come from?
On top of that, sending the result of get_param to collapse_rfc2231_value can
make it chokes if the result of get_param is None. I already proposed the
change in collapse_rfc2231_value to handle None gracefully in another ticket
#19063, though.
----------
assignee: docs@python
components: Documentation
files: fix_doc_get_param_in_email_message.patch
keywords: patch
messages: 202029
nosy: docs@python, vajrasky
priority: normal
severity: normal
status: open
title: Slightly incorrect doc for get_param method in Lib/email/message.py
versions: Python 3.4
Added file:
http://bugs.python.org/file32480/fix_doc_get_param_in_email_message.patch
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue19485>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com