summaryrefslogtreecommitdiff
path: root/cmd2/utils.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-04-11 14:42:37 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2020-04-11 14:42:37 -0400
commit5b4bec9d56b2907a168d0688b0a3cde64043d048 (patch)
treed2eb512710c724012a6533250d2173b6a8f0991f /cmd2/utils.py
parentf223e96cfb0be13881ebf304d0720f0633b7fe46 (diff)
downloadcmd2-git-5b4bec9d56b2907a168d0688b0a3cde64043d048.tar.gz
Simplfied _redirect_output() by raising exception instead of returning bool
Diffstat (limited to 'cmd2/utils.py')
-rw-r--r--cmd2/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/utils.py b/cmd2/utils.py
index 03ede2a3..8ad8fc67 100644
--- a/cmd2/utils.py
+++ b/cmd2/utils.py
@@ -674,7 +674,7 @@ class RedirectionSavedState:
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 or piping
self.redirecting = False
# If the command created a process to pipe to, then then is its reader