summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-11-22 22:04:38 +0100
committerAnton Khirnov <anton@khirnov.net>2021-11-22 22:04:38 +0100
commit74e77ea975804229779115286ddd023b73955557 (patch)
treec263583861f94507b78cde69b38f4fa23fee1bfc
parentaee36484f008408cb3af82972863f1192699b520 (diff)
helper/split_commandline: drop unused function parameters
-rw-r--r--alot/helper.py7
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)