# HG changeset patch # User Marcin Kuzminski # Date 2017-02-07 15:07:05 # Node ID dc9325379dff9ed3090d26c48370250437442dd5 # Parent cbdeb8723038579ad79136b4f666cacaa5b4aa29 mailer: don't use a mutable default argument diff --git a/rhodecode/lib/rcmail/smtp_mailer.py b/rhodecode/lib/rcmail/smtp_mailer.py --- a/rhodecode/lib/rcmail/smtp_mailer.py +++ b/rhodecode/lib/rcmail/smtp_mailer.py @@ -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 = {