summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-05-15 11:03:49 -0700
committerDylan Baker <dylan@pnwbakers.com>2018-05-15 11:03:49 -0700
commit94f4166f8e184f1a69c9793e754630e93e4b31ad (patch)
treeb147c16a11b616bd8a30b3ef7c399f6d1afc6b09 /alot
parenta86e346b0aed72f3a93d553ed699e0a89f4748e1 (diff)
commands/thread use a BytesIO instead of StringIO object
because the data is in bytes not strings.
Diffstat (limited to 'alot')
-rw-r--r--alot/commands/thread.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index ad854a5a..354ddd3d 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -15,7 +15,7 @@ from email.message import Message
from twisted.internet.defer import inlineCallbacks
import urwid
-from io import StringIO
+from io import BytesIO
from . import Command, registerCommand
from .globals import ExternalCommand
@@ -1000,7 +1000,7 @@ class OpenAttachmentCommand(Command):
def afterwards():
os.unlink(tempfile_name)
else:
- handler_stdin = StringIO()
+ handler_stdin = BytesIO()
self.attachment.write(handler_stdin)
# create handler command list