From 74e77ea975804229779115286ddd023b73955557 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 22 Nov 2021 22:04:38 +0100 Subject: helper/split_commandline: drop unused function parameters --- alot/helper.py | 7 +++---- 1 file 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) -- cgit v1.2.3