Mercurial > kallithea
diff kallithea/lib/rcmail/smtp_mailer.py @ 5555:32cdc6f70f13
cleanup: stop using mutable default params
author | Jiří Suchan <yed@vanyli.net> |
---|---|
date | Wed, 14 Oct 2015 20:08:18 +0100 |
parents | 0529498575ce |
children | 3009a239199d |
line wrap: on
line diff
--- a/kallithea/lib/rcmail/smtp_mailer.py Thu Oct 08 20:03:36 2015 +0200 +++ b/kallithea/lib/rcmail/smtp_mailer.py Wed Oct 14 20:08:18 2015 +0100 @@ -60,9 +60,9 @@ self.debug = debug self.auth = smtp_auth - def send(self, recipients=[], subject='', body='', html='', + def send(self, recipients=None, subject='', body='', html='', attachment_files=None, headers=None): - + recipients = recipients or [] if isinstance(recipients, basestring): recipients = [recipients] if headers is None: