diff options
author | kotfu <kotfu@kotfu.net> | 2018-04-29 09:52:10 -0600 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2018-04-29 09:52:10 -0600 |
commit | fd3512a80600a3262030d55ed03f4930757395f6 (patch) | |
tree | 8b364b33936aa82bd6a32f1f5edc41dcb83149e8 /cmd2/cmd2.py | |
parent | 5c14b3845f6a872e3e5b236f8caab6b4f3472f8f (diff) | |
download | cmd2-git-fd3512a80600a3262030d55ed03f4930757395f6.tar.gz |
Move quotes and redirection_chars from arguments to constants
Since the tab completion code relies on these same constants, if we allow them to be passed to the statement parser, we could have a situation where the statement parser and tab completion return different results.
Diffstat (limited to 'cmd2/cmd2.py')
-rwxr-xr-x | cmd2/cmd2.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 630ff034..626769fe 100755 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -687,9 +687,7 @@ class Cmd(cmd.Cmd): self.pystate = {} self.keywords = self.reserved_words + [fname[3:] for fname in dir(self) if fname.startswith('do_')] self.statement_parser = StatementParser( - quotes=constants.QUOTES, allow_redirection=self.allow_redirection, - redirection_chars=constants.REDIRECTION_CHARS, terminators=self.terminators, multilineCommands=self.multilineCommands, aliases=self.aliases, |