summaryrefslogtreecommitdiff
path: root/alot/commands/globals.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2017-08-16 11:50:25 -0700
committerDylan Baker <dylan@pnwbakers.com>2017-08-19 12:52:26 -0700
commitfa3dd1b04567c4ea03fa658c3838b569531c79f5 (patch)
tree6ffc0eedbf03b11ed87f92bd609bca6533ed64aa /alot/commands/globals.py
parentdee41bb04906d6976b4f7c05c222f7d95182b3ea (diff)
Use io.BytesIO and io.StringIO
In python3 StringIO and cStringIO are gone. In their place are io.BytesIO and io.StringIO. They are somewhat different in that they are not separated on implementation, but on the type they emulated. BytesIO works like the bytes class (str in python 2), while StringIO works like the str class (unicode in python2).
Diffstat (limited to 'alot/commands/globals.py')
-rw-r--r--alot/commands/globals.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py
index 5f9faa3d..b71376a2 100644
--- a/alot/commands/globals.py
+++ b/alot/commands/globals.py
@@ -12,7 +12,7 @@ import glob
import logging
import os
import subprocess
-from StringIO import StringIO
+from io import StringIO
import urwid
from twisted.internet.defer import inlineCallbacks