Converting to quoted printable encoding

"Nicholas Cole" <[email protected]>
Newsgroups gmane.comp.python.mime.devel
Message-ID <[email protected]>
My naive attempt to convert a MIMEText message part to quoted
printable (having read the documentation) looked something like this:

E = email.mime.text.MIMEText("This is some text")
email.encoders.encode_quopri(E)
print E.as_string()

But it yields a message with two Content-Transfer-Encoding headers.

I'm assuming that this is not a bug - but what is "The Right Way"(TM)
to change the encoding of text?

Best, N
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.