summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-08-08 16:33:32 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2017-08-08 16:33:32 -0400
commit8f32eea3faabadd8b5ce35e918afe2ee66d1a6d6 (patch)
treeeae071f9260cbc795b71218b51312af47b77f0f9 /examples
parent5ef89c48c6572936cfbfbd21fcba2f074e42a8a0 (diff)
downloadcmd2-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