diff options
Diffstat (limited to 'cmd2/parsing.py')
-rwxr-xr-x[-rw-r--r--] | cmd2/parsing.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cmd2/parsing.py b/cmd2/parsing.py index db085f5f..707140f7 100644..100755 --- a/cmd2/parsing.py +++ b/cmd2/parsing.py @@ -245,7 +245,6 @@ class StatementParser: the expansion. """ def __init__(self, - allow_redirection: bool = True, terminators: Optional[Iterable[str]] = None, multiline_commands: Optional[Iterable[str]] = None, aliases: Optional[Dict[str, str]] = None, @@ -257,13 +256,11 @@ class StatementParser: * multiline commands * shortcuts - :param allow_redirection: should redirection and pipes be allowed? :param terminators: iterable containing strings which should terminate commands :param multiline_commands: iterable containing the names of commands that accept multiline input :param aliases: dictionary containing aliases :param shortcuts: dictionary containing shortcuts """ - self.allow_redirection = allow_redirection if terminators is None: self.terminators = (constants.MULTILINE_TERMINATOR,) else: @@ -690,8 +687,7 @@ class StatementParser: """ punctuation = [] punctuation.extend(self.terminators) - if self.allow_redirection: - punctuation.extend(constants.REDIRECTION_CHARS) + punctuation.extend(constants.REDIRECTION_CHARS) punctuated_tokens = [] |