diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2017-06-01 11:32:21 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2018-03-01 10:34:56 -0800 |
commit | fd175a83a0fbc0a086dfc80d07f123ca32cd712e (patch) | |
tree | 3752fc613f5a2c0269eef40ce01ff63184cb586c /alot/helper.py | |
parent | a9a41b54c7edb8c81d5f44f0b95373b682bc2499 (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.py | 2 |
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 = ';' |