diff options
author | kotfu <kotfu@kotfu.net> | 2018-05-10 11:33:53 -0600 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2018-05-10 11:33:53 -0600 |
commit | ceb3ef56e5c98e3af31de27a2ce43b64324c7e4e (patch) | |
tree | 862840b5d797030374bc559ebdfed6465190eb08 /cmd2/constants.py | |
parent | ce5092fd9c2e23baa0952aac665e7c26ed85a03a (diff) | |
download | cmd2-git-ceb3ef56e5c98e3af31de27a2ce43b64324c7e4e.tar.gz |
Get rid of last hard-coded redirection constants
Diffstat (limited to 'cmd2/constants.py')
-rw-r--r-- | cmd2/constants.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd2/constants.py b/cmd2/constants.py index af0a44cc..b829000f 100644 --- a/cmd2/constants.py +++ b/cmd2/constants.py @@ -11,6 +11,7 @@ REDIRECTION_PIPE = '|' REDIRECTION_OUTPUT = '>' REDIRECTION_APPEND = '>>' REDIRECTION_CHARS = [REDIRECTION_PIPE, REDIRECTION_OUTPUT] +REDIRECTION_TOKENS = [REDIRECTION_PIPE, REDIRECTION_OUTPUT, REDIRECTION_APPEND] # Regular expression to match ANSI escape codes ANSI_ESCAPE_RE = re.compile(r'\x1b[^m]*m') |