summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-08-19 13:38:12 -0700
committerGitHub <noreply@github.com>2017-08-19 13:38:12 -0700
commitf49d88a5bc5d981c78c2242a53ac34f8576b89ee (patch)
treea9d672bf19d64dc87c0f89eb827d009e00fce1d5 /cmd2.py
parentebc75bb1bf09f3ed0df85a5bcba587b732687a33 (diff)
parenta0c895b3b773dfaca3667da0db794457d0b93b03 (diff)
downloadcmd2-git-f49d88a5bc5d981c78c2242a53ac34f8576b89ee.tar.gz
Merge pull request #211 from kotfu/fix/feedback_to_output
.pfeedback() now honors feedback_to_output setting
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