summaryrefslogtreecommitdiff
path: root/docs
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 /docs
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 'docs')
-rw-r--r--docs/install.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/install.rst b/docs/install.rst
index 6d293176..1edba409 100644
--- a/docs/install.rst
+++ b/docs/install.rst
@@ -124,3 +124,10 @@ If you wish to permanently uninstall ``cmd2``, this can also easily be done with
pip uninstall cmd2
+Extra requirement for Python 2.7 only
+-------------------------------------
+If you want to be able to pipe the output of commands to a shell command on Python 2.7, then you will need one
+additional package installed:
+
+ * subprocess32
+