DeprecationWarning: the MimeWriter module is deprecated; use the email package instead

[email protected] Thu, 24 Sep 2009 12:54:41 -0000
Newsgroups gmane.comp.python.twisted.bugs
Message-ID <[email protected]>
New submission from maurice <None>:

In python 2.6.2 the following DeprecationWarning is given on:

{{{
>>> from twisted.mail import smtp
/usr/lib/python2.6/dist-packages/twisted/mail/smtp.py:10: DeprecationWarning: the MimeWriter module is deprecated; use the email package instead
  import MimeWriter, tempfile, rfc822
}}}

In smpty.py the MimeWriter module is imported.
MimeWriter is used in sendEmail.

Even if sendmail is used in stead of sendEmail, this message is given.
It is currently not possible for Twisted users to work around this warning.



----------
Type     : defect
Component: mail
Keywords : 
Priority : normal
Nosy     : 
----------
http://twistedmatrix.com/trac/ticket/4038