summaryrefslogtreecommitdiff
path: root/cmd2/parsing.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-12-06 13:40:58 -0500
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-12-06 13:40:58 -0500
commit5b9281f6dfb55d436e6a19ae41af5a8590fbaed7 (patch)
tree6b4d269801df6fb2634af3003fe28a29b010008f /cmd2/parsing.py
parent23970dfdca765992157b8089f3a34f7fd4fa4f10 (diff)
parentea182bbea386288b1acfbc35c99243a457ff1036 (diff)
downloadcmd2-git-5b9281f6dfb55d436e6a19ae41af5a8590fbaed7.tar.gz
Merge branch 'master' into history
Diffstat (limited to 'cmd2/parsing.py')
-rw-r--r--cmd2/parsing.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd2/parsing.py b/cmd2/parsing.py
index f372b0d3..070d3774 100644
--- a/cmd2/parsing.py
+++ b/cmd2/parsing.py
@@ -420,14 +420,14 @@ class StatementParser:
if terminator:
if terminator == constants.LINE_FEED:
- terminator_pos = len(tokens)+1
+ terminator_pos = len(tokens) + 1
# everything before the first terminator is the command and the args
(command, args) = self._command_and_args(tokens[:terminator_pos])
arg_list = tokens[1:terminator_pos]
# we will set the suffix later
# remove all the tokens before and including the terminator
- tokens = tokens[terminator_pos+1:]
+ tokens = tokens[terminator_pos + 1:]
else:
(testcommand, testargs) = self._command_and_args(tokens)
if testcommand in self.multiline_commands:
@@ -447,7 +447,7 @@ class StatementParser:
# find the first pipe if it exists
pipe_pos = tokens.index(constants.REDIRECTION_PIPE)
# save everything after the first pipe as tokens
- pipe_to = tokens[pipe_pos+1:]
+ pipe_to = tokens[pipe_pos + 1:]
for pos, cur_token in enumerate(pipe_to):
unquoted_token = utils.strip_quotes(cur_token)