mailer: don't use a mutable default argument
This commit is contained in:
parent
029abc25e9
commit
18f667c234
1 changed files with 2 additions and 2 deletions
|
|
@ -71,9 +71,9 @@ class SmtpMailer(object):
|
|||
smtplib.stderr = StderrLogger()
|
||||
return smtplib
|
||||
|
||||
def send(self, recipients=[], subject='', body='', html='',
|
||||
def send(self, recipients=None, subject='', body='', html='',
|
||||
attachment_files=None):
|
||||
|
||||
recipients = recipients or []
|
||||
if isinstance(recipients, basestring):
|
||||
recipients = [recipients]
|
||||
headers = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue