summaryrefslogtreecommitdiffstats
path: root/pym/portage/mail.py
diff options
context:
space:
mode:
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))