From 70bf9e1a12b89bb913c11fb07893ab4b9cab2576 Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Sat, 15 Jun 2019 15:00:59 -0400 Subject: Began work to minimize public API --- cmd2/parsing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd2/parsing.py') diff --git a/cmd2/parsing.py b/cmd2/parsing.py index 8febd270..a89f6e5e 100644 --- a/cmd2/parsing.py +++ b/cmd2/parsing.py @@ -324,7 +324,7 @@ class StatementParser: This string is suitable for inclusion in an error message of your choice: - valid, errmsg = statement_parser.is_valid_command('>') + valid, errmsg = _statement_parser.is_valid_command('>') if not valid: errmsg = "Alias {}".format(errmsg) """ @@ -494,7 +494,7 @@ class StatementParser: output = constants.REDIRECTION_APPEND output_index = append_index - # Check if we are redirecting to a file + # Check if we are _redirecting to a file if len(tokens) > output_index + 1: unquoted_path = utils.strip_quotes(tokens[output_index + 1]) if unquoted_path: -- cgit v1.2.1 From f77c44dd79b484f96a3077fd7ca64fd5b3c35fa1 Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Sat, 15 Jun 2019 16:27:29 -0400 Subject: Fixed a few comments where "redirecting" accidentally got changed to "_redirecting" --- cmd2/parsing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd2/parsing.py') diff --git a/cmd2/parsing.py b/cmd2/parsing.py index a89f6e5e..f705128c 100644 --- a/cmd2/parsing.py +++ b/cmd2/parsing.py @@ -494,7 +494,7 @@ class StatementParser: output = constants.REDIRECTION_APPEND output_index = append_index - # Check if we are _redirecting to a file + # Check if we are redirecting to a file if len(tokens) > output_index + 1: unquoted_path = utils.strip_quotes(tokens[output_index + 1]) if unquoted_path: -- cgit v1.2.1