diff options
author | Jared Crapo <jared@kotfu.net> | 2017-08-19 11:37:06 -0600 |
---|---|---|
committer | Jared Crapo <jared@kotfu.net> | 2017-08-19 11:37:06 -0600 |
commit | 5602437e7a19b2be1133bd3290f823b222232ad3 (patch) | |
tree | 5c6bc233c28e9942ed9c8225d5694b41964e6658 /cmd2.py | |
parent | ebc75bb1bf09f3ed0df85a5bcba587b732687a33 (diff) | |
download | cmd2-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-x | cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |