lavr / python-emails

Modern python library for emails
http://python-emails.readthedocs.org
Other
405 stars 54 forks source link

Default arguments to transform cause DeprecationWarning #124

Closed vfaronov closed 5 years ago

vfaronov commented 5 years ago

When you call emails.Message.transform with the default argument values, you get a DeprecationWarning:

$ python -W all::DeprecationWarning::
Python 3.6.7 (default, Oct 22 2018, 11:32:17) 
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import emails
>>> msg = emails.html(html='<p>hello world</p>')
>>> msg.transform()
/home/vasiliy/.local/env/psydiag/lib/python3.6/site-packages/emails/transformer.py:303: DeprecationWarning: update_stylesheet=True is deprecated.
  warnings.warn("update_stylesheet=True is deprecated.", DeprecationWarning)