summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd2/cmd2.py4
-rw-r--r--cmd2/parsing.py2
-rw-r--r--cmd2/utils.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index 3aa0895a..476edcaf 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -436,7 +436,7 @@ class Cmd(cmd.Cmd):
# Used by complete() for readline tab completion
self._completion_matches = []
- # Used to keep track of whether we are _redirecting or piping output
+ # Used to keep track of whether we are redirecting or piping output
self._redirecting = False
# Used to keep track of whether a continuation prompt is being displayed
@@ -676,7 +676,7 @@ class Cmd(cmd.Cmd):
if sys.platform.startswith('win') or os.environ.get('TERM') is not None:
functional_terminal = True
- # Don't attempt to use a pager that can block if _redirecting or running a script (either text or Python)
+ # Don't attempt to use a pager that can block if redirecting or running a script (either text or Python)
# Also only attempt to use a pager if actually running in a real fully functional terminal
if functional_terminal and not self._redirecting and not self._in_py and not self._script_dir:
if self.colors.lower() == constants.COLORS_NEVER.lower():
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:
diff --git a/cmd2/utils.py b/cmd2/utils.py
index 43eb3d9d..c8fb4aff 100644
--- a/cmd2/utils.py
+++ b/cmd2/utils.py
@@ -615,7 +615,7 @@ class RedirectionSavedState(object):
self.saved_sys_stdout = sys_stdout
self.saved_pipe_proc_reader = pipe_proc_reader
- # Tells if the command is _redirecting
+ # Tells if the command is redirecting
self.redirecting = False
# If the command created a process to pipe to, then then is its reader