summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorJared Crapo <jared@kotfu.net>2017-08-19 11:37:06 -0600
committerJared Crapo <jared@kotfu.net>2017-08-19 11:37:06 -0600
commit5602437e7a19b2be1133bd3290f823b222232ad3 (patch)
tree5c6bc233c28e9942ed9c8225d5694b41964e6658 /cmd2.py
parentebc75bb1bf09f3ed0df85a5bcba587b732687a33 (diff)
downloadcmd2-git-5602437e7a19b2be1133bd3290f823b222232ad3.tar.gz
.pfeedback() now honors feedback_to_output setting
If feedback_to_output is false, .pfeedback() now sends messages to stderr instead of stdout.
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2.py b/cmd2.py
index b3e08656..b885fa28 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -627,7 +627,7 @@ class Cmd(cmd.Cmd):
if self.feedback_to_output:
self.poutput(msg)
else:
- print(msg)
+ sys.stderr.write("{}\n".format(msg))
def colorize(self, val, color):
"""Given a string (``val``), returns that string wrapped in UNIX-style