##// END OF EJS Templates
python 3 compatible
Victor NOEL -
r62:921d3d72 default
parent child Browse files
Show More
@@ -299,7 +299,7 b' def try_smtp_login(ui, smtp_obj, usernam'
299 299 (username))
300 300 smtp_obj.login(username, password)
301 301 return True
302 except smtplib.SMTPException, inst:
302 except smtplib.SMTPException as inst:
303 303 if inst.smtp_code == 535:
304 304 ui.status(_("SMTP login failed: %s\n\n") % inst.smtp_error)
305 305 return False
@@ -350,10 +350,10 b' def keyring_supported_smtp(ui, username)'
350 350 def send(sender, recipients, msg):
351 351 try:
352 352 return s.sendmail(sender, recipients, msg)
353 except smtplib.SMTPRecipientsRefused, inst:
353 except smtplib.SMTPRecipientsRefused as inst:
354 354 recipients = [r[1] for r in inst.recipients.values()]
355 355 raise util.Abort('\n' + '\n'.join(recipients))
356 except smtplib.SMTPException, inst:
356 except smtplib.SMTPException as inst:
357 357 raise util.Abort(inst)
358 358
359 359 return send
General Comments 0
You need to be logged in to leave comments. Login now