Fixup pylint
@@ -218,7 +218,8 @@ class Trello(object):
newlist = self.make_request('/lists', 'POST', params)
return newlist['id']
- def email_report(self, email, subj, body):
+ @staticmethod
+ def email_report(email, subj, body):
"""Email report
:param email: email address
:param subj: email subject
@@ -229,9 +230,9 @@ class Trello(object):
msg['From'] = EMAIL_FROM
msg['To'] = email
msg['Reply-to'] = EMAIL_REPLYTO
- s = smtplib.SMTP(host=EMAIL_SERVER, port='25')
- s.sendmail(email, email, msg.as_string())
- s.quit()
+ smtpcxn = smtplib.SMTP(host=EMAIL_SERVER, port='25')
+ smtpcxn.sendmail(email, email, msg.as_string())
+ smtpcxn.quit()
def get_list_cards(self, trello_list=DEFAULT_LIST):
"""Return card total for given list
