summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Sunden <ksunden@users.noreply.github.com>2018-07-10 20:00:44 -0500
committerGitHub <noreply@github.com>2018-07-10 20:00:44 -0500
commit5b42dc9f5090b2406abe82cf1600b68b795b9e46 (patch)
tree2bcd48a7b109f45117d6579dfbeb41a99c9f9781
parentd80d672f47c3141bf4dfd7fc31818aa36d65a832 (diff)
downloadcmd2-git-5b42dc9f5090b2406abe82cf1600b68b795b9e46.tar.gz
Use instance attribute for terminators
If the `terminators` is the default, `None`, the function fails because the local variable was not updated.
-rw-r--r--cmd2/parsing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/parsing.py b/cmd2/parsing.py
index 8d59aedb..84c7e27a 100644
--- a/cmd2/parsing.py
+++ b/cmd2/parsing.py
@@ -163,7 +163,7 @@ class StatementParser:
invalid_command_chars = []
invalid_command_chars.extend(constants.QUOTES)
invalid_command_chars.extend(constants.REDIRECTION_CHARS)
- invalid_command_chars.extend(terminators)
+ invalid_command_chars.extend(self.terminators)
# escape each item so it will for sure get treated as a literal
second_group_items = [re.escape(x) for x in invalid_command_chars]
# add the whitespace and end of string, not escaped because they