From dbdfb0d809be66ca6858c8788388165f6a5e0326 Mon Sep 17 00:00:00 2001 From: Matteo Gamboz Date: Tue, 12 Nov 2019 14:36:17 +0100 Subject: [PATCH] add parenthesis to _print_ and use method _warning_ instead of _warn_ --- collective/watcherlist/mailer.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/collective/watcherlist/mailer.py b/collective/watcherlist/mailer.py index 9c82836..6c7422e 100644 --- a/collective/watcherlist/mailer.py +++ b/collective/watcherlist/mailer.py @@ -35,14 +35,14 @@ def simple_send_mail(message, addresses, subject, immediate=False): """ mail_host = utils.get_mail_host() if mail_host is None: - logger.warn("Cannot send notification email: please configure " - "MailHost correctly.") + logger.warning("Cannot send notification email: please configure " + "MailHost correctly.") # We print some info, which is perfect for checking in unit # tests. - print 'Subject =', subject - print 'Addresses =', addresses - print 'Message =' - print message + print('Subject =', subject) + print('Addresses =', addresses) + print('Message =') + print(message) return mfrom = utils.get_mail_from_address()