summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2018-04-29 09:52:10 -0600
committerkotfu <kotfu@kotfu.net>2018-04-29 09:52:10 -0600
commitfd3512a80600a3262030d55ed03f4930757395f6 (patch)
tree8b364b33936aa82bd6a32f1f5edc41dcb83149e8 /cmd2/cmd2.py
parent5c14b3845f6a872e3e5b236f8caab6b4f3472f8f (diff)
downloadcmd2-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-xcmd2/cmd2.py2
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,