summaryrefslogtreecommitdiff
path: root/alot/db/envelope.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/db/envelope.py')
-rw-r--r--alot/db/envelope.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/db/envelope.py b/alot/db/envelope.py
index 017dbaa4..bb440a00 100644
--- a/alot/db/envelope.py
+++ b/alot/db/envelope.py
@@ -155,7 +155,7 @@ class Envelope(object):
if isinstance(attachment, Attachment):
self.attachments.append(attachment)
- elif isinstance(attachment, basestring):
+ elif isinstance(attachment, str):
path = os.path.expanduser(attachment)
part = helper.mimewrap(path, filename, ctype)
self.attachments.append(Attachment(part))