diff options
-rw-r--r-- | alot/helper.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/alot/helper.py b/alot/helper.py index 143babbe..08df3667 100644 --- a/alot/helper.py +++ b/alot/helper.py @@ -13,7 +13,7 @@ import email import magic -def split_commandline(s, comments=False, posix=True): +def split_commandline(s): """ splits semi-colon separated commandlines """ @@ -21,11 +21,10 @@ def split_commandline(s, comments=False, posix=True): s = s.replace('\\', '\\\\') s = s.replace('\'', '\\\'') s = s.replace('\"', '\\\"') - lex = shlex.shlex(s, posix=posix) + lex = shlex.shlex(s, posix = True) lex.whitespace_split = True lex.whitespace = ';' - if not comments: - lex.commenters = '' + lex.commenters = '' return list(lex) |