summaryrefslogtreecommitdiffstats
path: root/pym/portage/mail.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-03-07 19:40:18 +0000
committerZac Medico <zmedico@gentoo.org>2009-03-07 19:40:18 +0000
commit1a591a6ee59ad59b2107fe113fcbfd3cb30879aa (patch)
tree0febb74ef1b5cee418eba57c53efef574795416d /pym/portage/mail.py
parentde83c76040a64a4f4997ce70214fa3f44c411695 (diff)
downloadportage-1a591a6ee59ad59b2107fe113fcbfd3cb30879aa.tar.gz
portage-1a591a6ee59ad59b2107fe113fcbfd3cb30879aa.tar.bz2
portage-1a591a6ee59ad59b2107fe113fcbfd3cb30879aa.zip
Always use basestring instead of str with isinstance().
svn path=/main/trunk/; revision=12775
Diffstat (limited to 'pym/portage/mail.py')
-rw-r--r--pym/portage/mail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/mail.py b/pym/portage/mail.py
index cf6ebd134..72b411264 100644
--- a/pym/portage/mail.py
+++ b/pym/portage/mail.py
@@ -17,7 +17,7 @@ def create_message(sender, recipient, subject, body, attachments=None):
for x in attachments:
if isinstance(x, BaseMessage):
mymessage.attach(x)
- elif isinstance(x, str):
+ elif isinstance(x, basestring):
mymessage.attach(TextMessage(x))
else:
raise portage.exception.PortageException("Can't handle type of attachment: %s" % type(x))