summaryrefslogtreecommitdiffstats
path: root/pym/portage/mail.py
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-20 10:57:44 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-20 10:57:44 +0000
commit7cb8fb941f09d1ac646be334745f90e16ebd46eb (patch)
treebad100ba3461c881ebd388d29a6ac859a8962a1a /pym/portage/mail.py
parente70e41916899163fb28a1f5fa24c0ee2b17707f7 (diff)
downloadportage-7cb8fb941f09d1ac646be334745f90e16ebd46eb.tar.gz
portage-7cb8fb941f09d1ac646be334745f90e16ebd46eb.tar.bz2
portage-7cb8fb941f09d1ac646be334745f90e16ebd46eb.zip
Update syntax of 'except' statements for compatibility with Python 3.
(2to3-3.1 -f except -nw ${FILES}) svn path=/main/trunk/; revision=14289
Diffstat (limited to 'pym/portage/mail.py')
-rw-r--r--pym/portage/mail.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/mail.py b/pym/portage/mail.py
index 260455739..a8b384969 100644
--- a/pym/portage/mail.py
+++ b/pym/portage/mail.py
@@ -126,9 +126,9 @@ def send_mail(mysettings, message):
myconn.login(mymailuser, mymailpasswd)
myconn.sendmail(myfrom, myrecipient, message.as_string())
myconn.quit()
- except smtplib.SMTPException, e:
+ except smtplib.SMTPException as e:
raise portage.exception.PortageException(_("!!! An error occured while trying to send logmail:\n")+str(e))
- except socket.error, e:
+ except socket.error as e:
raise portage.exception.PortageException(_("!!! A network error occured while trying to send logmail:\n%s\nSure you configured PORTAGE_ELOG_MAILURI correctly?") % str(e))
return