Skip to content

Commit f77c44d

Browse files
committed
Fixed a few comments where "redirecting" accidentally got changed to "_redirecting"
1 parent d68b3fe commit f77c44d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cmd2/cmd2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ def __init__(self, completekey: str = 'tab', stdin=None, stdout=None, *,
436436
# Used by complete() for readline tab completion
437437
self._completion_matches = []
438438

439-
# Used to keep track of whether we are _redirecting or piping output
439+
# Used to keep track of whether we are redirecting or piping output
440440
self._redirecting = False
441441

442442
# Used to keep track of whether a continuation prompt is being displayed
@@ -676,7 +676,7 @@ def ppaged(self, msg: str, end: str = '\n', chop: bool = False) -> None:
676676
if sys.platform.startswith('win') or os.environ.get('TERM') is not None:
677677
functional_terminal = True
678678

679-
# Don't attempt to use a pager that can block if _redirecting or running a script (either text or Python)
679+
# Don't attempt to use a pager that can block if redirecting or running a script (either text or Python)
680680
# Also only attempt to use a pager if actually running in a real fully functional terminal
681681
if functional_terminal and not self._redirecting and not self._in_py and not self._script_dir:
682682
if self.colors.lower() == constants.COLORS_NEVER.lower():

cmd2/parsing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ def parse(self, line: str, expand: bool = True) -> Statement:
494494
output = constants.REDIRECTION_APPEND
495495
output_index = append_index
496496

497-
# Check if we are _redirecting to a file
497+
# Check if we are redirecting to a file
498498
if len(tokens) > output_index + 1:
499499
unquoted_path = utils.strip_quotes(tokens[output_index + 1])
500500
if unquoted_path:

cmd2/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ def __init__(self, self_stdout: Union[StdSim, TextIO], sys_stdout: Union[StdSim,
615615
self.saved_sys_stdout = sys_stdout
616616
self.saved_pipe_proc_reader = pipe_proc_reader
617617

618-
# Tells if the command is _redirecting
618+
# Tells if the command is redirecting
619619
self.redirecting = False
620620

621621
# If the command created a process to pipe to, then then is its reader

0 commit comments

Comments
 (0)