Commits

Marcin Kasperski committed 23ab83e

Reverting previous change as it just makes extension incompatible with 2.4 and 2.5 without gaining anything as neither mercurial, nor keyring are 3k compatible

  • Participants
  • Parent commits 921d3d7

Comments (0)

Files changed (1)

File mercurial_keyring.py

                  (username))
         smtp_obj.login(username, password)
         return True
-    except smtplib.SMTPException as inst:
+    except smtplib.SMTPException, inst:
         if inst.smtp_code == 535:
             ui.status(_("SMTP login failed: %s\n\n") % inst.smtp_error)
             return False
     def send(sender, recipients, msg):
         try:
             return s.sendmail(sender, recipients, msg)
-        except smtplib.SMTPRecipientsRefused as inst:
+        except smtplib.SMTPRecipientsRefused, inst:
             recipients = [r[1] for r in inst.recipients.values()]
             raise util.Abort('\n' + '\n'.join(recipients))
-        except smtplib.SMTPException as inst:
+        except smtplib.SMTPException, inst:
             raise util.Abort(inst)
 
     return send