aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2007-01-25 16:20:19 +0000
committerMarius Mauch <genone@gentoo.org>2007-01-25 16:20:19 +0000
commit5e12dbfeba941ed009229a3d497827bdbc7fb881 (patch)
tree8cdebdc06cfcbdc0fed6c672439274db58679093 /pym/portage/mail.py
parentAdding compat symlinks for cache and elog packages (diff)
downloadportage-5e12dbfeba941ed009229a3d497827bdbc7fb881.tar.gz
portage-5e12dbfeba941ed009229a3d497827bdbc7fb881.tar.bz2
portage-5e12dbfeba941ed009229a3d497827bdbc7fb881.zip
Namespace sanitizing, step 2
Rename portage.exec to portage.process to avoid syntax errors svn path=/main/trunk/; revision=5780
Diffstat (limited to 'pym/portage/mail.py')
-rw-r--r--pym/portage/mail.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pym/portage/mail.py b/pym/portage/mail.py
index 99ed77fda..7c326b039 100644
--- a/pym/portage/mail.py
+++ b/pym/portage/mail.py
@@ -3,7 +3,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Id: portage.py 3483 2006-06-10 21:40:40Z genone $
-import portage_exception, socket, smtplib, os, sys, time
+import portage.exception, socket, smtplib, os, sys, time
from email.MIMEText import MIMEText as TextMessage
from email.MIMEMultipart import MIMEMultipart as MultipartMessage
from email.MIMEBase import MIMEBase as BaseMessage
@@ -20,7 +20,7 @@ def create_message(sender, recipient, subject, body, attachments=None):
elif isinstance(x, str):
mymessage.attach(TextMessage(x))
else:
- raise portage_exception.PortageException("Can't handle type of attachment: %s" % type(x))
+ raise portage.exception.PortageException("Can't handle type of attachment: %s" % type(x))
mymessage.set_unixfrom(sender)
mymessage["To"] = recipient
@@ -82,8 +82,8 @@ def send_mail(mysettings, message):
myconn.sendmail(myfrom, myrecipient, message.as_string())
myconn.quit()
except smtplib.SMTPException, e:
- raise portage_exception.PortageException("!!! An error occured while trying to send logmail:\n"+str(e))
+ raise portage.exception.PortageException("!!! An error occured while trying to send logmail:\n"+str(e))
except socket.error, e:
- raise portage_exception.PortageException("!!! A network error occured while trying to send logmail:\n"+str(e)+"\nSure you configured PORTAGE_ELOG_MAILURI correctly?")
+ raise portage.exception.PortageException("!!! A network error occured while trying to send logmail:\n"+str(e)+"\nSure you configured PORTAGE_ELOG_MAILURI correctly?")
return