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/cmd2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd2/cmd2.py') 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(): -- cgit v1.2.1