summaryrefslogtreecommitdiff
path: root/alot/helper.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2017-06-01 11:32:21 -0700
committerDylan Baker <dylan@pnwbakers.com>2018-03-01 10:34:56 -0800
commitfd175a83a0fbc0a086dfc80d07f123ca32cd712e (patch)
tree3752fc613f5a2c0269eef40ce01ff63184cb586c /alot/helper.py
parenta9a41b54c7edb8c81d5f44f0b95373b682bc2499 (diff)
py3k: don't covert to bytes for shlex
shlex expectes unicode in python3
Diffstat (limited to 'alot/helper.py')
-rw-r--r--alot/helper.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/alot/helper.py b/alot/helper.py
index db37f34d..0297ea65 100644
--- a/alot/helper.py
+++ b/alot/helper.py
@@ -41,8 +41,6 @@ def split_commandline(s, comments=False, posix=True):
s = s.replace('\'', '\\\'')
s = s.replace('\"', '\\\"')
# encode s to utf-8 for shlex
- if isinstance(s, str):
- s = s.encode('utf-8')
lex = shlex.shlex(s, posix=posix)
lex.whitespace_split = True
lex.whitespace = ';'