classification
Title: email.Message.as_string no longer mangles "From " (doc fix)
Type: behavior Stage: committed/rejected
Components: Library (Lib) Versions: Python 3.3, Python 3.2, Python 3.1
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: r.david.murray Nosy List: michael.henry, python-dev, r.david.murray
Priority: normal Keywords:

Created on 2011-03-15 15:15 by michael.henry, last changed 2011-03-15 18:05 by r.david.murray. This issue is now closed.

Messages (2)
msg130981 - (view) Author: Michael Henry (michael.henry) * Date: 2011-03-15 15:15
The function email.Message.as_string has an out-of-date comment:

"""
This is a convenience method and may not generate the message exactly
as you intend because by default it mangles lines that begin with
"From ".  For more flexibility, use the flatten() method of a
Generator instance.
"""

The functionality has changed such that "From " mangling is no longer done.
msg131011 - (view) Author: Roundup Robot (python-dev) Date: 2011-03-15 18:04
New changeset 2804a78a123e by R David Murray in branch '3.1':
#11555: update doc for 3.x change to as_string mangle_from default.
http://hg.python.org/cpython/rev/2804a78a123e

New changeset 9daa9a4c4cc4 by R David Murray in branch '3.2':
Merge #11555 as_string doc fix from 3.1.
http://hg.python.org/cpython/rev/9daa9a4c4cc4

New changeset 1c0cded97280 by R David Murray in branch 'default':
Merge #11555 as_string doc fix from 3.2.
http://hg.python.org/cpython/rev/1c0cded97280
History
Date User Action Args
2011-03-15 18:05:29r.david.murraysetstatus: open -> closed
type: behavior
resolution: fixed
stage: committed/rejected
2011-03-15 18:04:44python-devsetnosy: + python-dev
messages: + msg131011
2011-03-15 16:43:47r.david.murraysetversions: + Python 3.1, Python 3.2, Python 3.3
2011-03-15 16:14:43r.david.murraysetassignee: r.david.murray
2011-03-15 15:15:42michael.henrycreate