From 5b4bec9d56b2907a168d0688b0a3cde64043d048 Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Sat, 11 Apr 2020 14:42:37 -0400 Subject: Simplfied _redirect_output() by raising exception instead of returning bool --- cmd2/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd2/utils.py') 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 -- cgit v1.2.1