diff options
| author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-08-08 16:33:32 -0400 |
|---|---|---|
| committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-08-08 16:33:32 -0400 |
| commit | 8f32eea3faabadd8b5ce35e918afe2ee66d1a6d6 (patch) | |
| tree | eae071f9260cbc795b71218b51312af47b77f0f9 /examples | |
| parent | 5ef89c48c6572936cfbfbd21fcba2f074e42a8a0 (diff) | |
| download | cmd2-git-8f32eea3faabadd8b5ce35e918afe2ee66d1a6d6.tar.gz | |
Replaced direct calls to self.stdout.write() with calls to self.poutput().
Modified implementation of poutput() to accept an optional "end" argument which can change the ending to something other than a newline or simply suppress adding a newline. Also added a try/except to catch BrokenPipeError exceptions which can occupoutputr if the subprocess output is being piped to closes before the command piping output to it is finished.
Updated install docs to note that when using Python 2.7, the subprocess32 module should also be installed.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions
