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.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/mail.py b/pym/portage/mail.py
index c2c7354d4..85192d097 100644
--- a/pym/portage/mail.py
+++ b/pym/portage/mail.py
@@ -18,6 +18,9 @@ from portage import _unicode_encode
from portage.localization import _
import portage
+if sys.hexversion >= 0x3000000:
+ basestring = str
+
def create_message(sender, recipient, subject, body, attachments=None):
if sys.hexversion < 0x3000000: