<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/cmd2-git.git/cmd2.py, branch 0.7.6</title>
<subtitle>github.com: python-cmd2/cmd2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/'/>
<entry>
<title>The default buffer size is fine for 99% of pipe operations</title>
<updated>2017-08-10T17:17:01+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2017-08-10T17:17:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=3db44e5f5a552e2a2efee544b7ef5dd8d56f6c46'/>
<id>3db44e5f5a552e2a2efee544b7ef5dd8d56f6c46</id>
<content type='text'>
Removed the complexity of a member variable which would be unnecessary for the vast majority of applications.

If users have an application with atypical requirements, they are free to override the default.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Removed the complexity of a member variable which would be unnecessary for the vast majority of applications.

If users have an application with atypical requirements, they are free to override the default.
</pre>
</div>
</content>
</entry>
<entry>
<title>Improved comment</title>
<updated>2017-08-10T15:43:52+00:00</updated>
<author>
<name>Kevin Van Brunt</name>
<email>kmvanbrunt@gmail.com</email>
</author>
<published>2017-08-10T15:43:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=c5f9ca9b9cb4cf746dd9f9891d725320a13b78c0'/>
<id>c5f9ca9b9cb4cf746dd9f9891d725320a13b78c0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'master' into buffer_size</title>
<updated>2017-08-10T13:36:30+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2017-08-10T13:36:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=2db18d0342c9e8ce1f3f5ee799791edfd0b46602'/>
<id>2db18d0342c9e8ce1f3f5ee799791edfd0b46602</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix for occasional extra output at startup when using Python 2.7 on Linux</title>
<updated>2017-08-10T13:21:36+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2017-08-10T13:21:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=717b7ef414c42755309cb8240978d11838e33439'/>
<id>717b7ef414c42755309cb8240978d11838e33439</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Added pipe buffer size that can be tweaked if stdin/stdout need to be larger when piping to shell commands.</title>
<updated>2017-08-10T04:22:59+00:00</updated>
<author>
<name>Kevin Van Brunt</name>
<email>kmvanbrunt@gmail.com</email>
</author>
<published>2017-08-10T04:22:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=a2df31081138beb634cad5cdba8aa18817b98b46'/>
<id>a2df31081138beb634cad5cdba8aa18817b98b46</id>
<content type='text'>
Fixed error caused by BrokenPipeError not existing in Python 2.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixed error caused by BrokenPipeError not existing in Python 2.
</pre>
</div>
</content>
</entry>
<entry>
<title>Made a few code ruggedizations</title>
<updated>2017-08-09T19:43:49+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2017-08-09T19:43:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=c28a027ae9c085603590f75aff3b34368a6b7265'/>
<id>c28a027ae9c085603590f75aff3b34368a6b7265</id>
<content type='text'>
- poutput() can now take any argument convertible to a str via '{}'.format() instead of only str
- postparsing_postcmd() automatically runs a 'stty sane' on POSIX OSes to handle those cases of your terminal getting in a messed up state if you do something like pipe to a terminal command like "less" and then improperly quit out of it with a &lt;Ctrl&gt;-C instead of properly using "q"
- In _restore_output(), immeditelly restore stdout state in a finally block after closing the temporary one used for redirection/piping
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- poutput() can now take any argument convertible to a str via '{}'.format() instead of only str
- postparsing_postcmd() automatically runs a 'stty sane' on POSIX OSes to handle those cases of your terminal getting in a messed up state if you do something like pipe to a terminal command like "less" and then improperly quit out of it with a &lt;Ctrl&gt;-C instead of properly using "q"
- In _restore_output(), immeditelly restore stdout state in a finally block after closing the temporary one used for redirection/piping
</pre>
</div>
</content>
</entry>
<entry>
<title>Minor tweak to wording of a comment for clarification</title>
<updated>2017-08-08T23:31:02+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2017-08-08T23:31:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=832f3ec312a04176676ea282b51a4e2284bf349b'/>
<id>832f3ec312a04176676ea282b51a4e2284bf349b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Slight rewording to a comment to make it more accurate</title>
<updated>2017-08-08T21:08:14+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2017-08-08T21:08:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=5d8d6ec13fad6d27a7f5c3e8e9853518a8a6f574'/>
<id>5d8d6ec13fad6d27a7f5c3e8e9853518a8a6f574</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Replaced direct calls to self.stdout.write() with calls to self.poutput().</title>
<updated>2017-08-08T20:33:32+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2017-08-08T20:33:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=8f32eea3faabadd8b5ce35e918afe2ee66d1a6d6'/>
<id>8f32eea3faabadd8b5ce35e918afe2ee66d1a6d6</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Changed how the pipe file descriptors get opened on Python 3 vs 2</title>
<updated>2017-08-08T03:22:11+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2017-08-08T03:22:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=3a3c867c0715e03e30cc30bea7b08604af3aacdc'/>
<id>3a3c867c0715e03e30cc30bea7b08604af3aacdc</id>
<content type='text'>
Open them in text mode in Python 3 so self.stdout.write() expects normal Python 3 (unicode) strings.

Open them in binary mode in Python 2 so self.stdout.write() expects normal Python 2 (byte) strings.

Also fixed a unit test mocking issue on Python 2 to account for the fact that Python 2.7 requires the subprocess32 module instead of subprocess.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Open them in text mode in Python 3 so self.stdout.write() expects normal Python 3 (unicode) strings.

Open them in binary mode in Python 2 so self.stdout.write() expects normal Python 2 (byte) strings.

Also fixed a unit test mocking issue on Python 2 to account for the fact that Python 2.7 requires the subprocess32 module instead of subprocess.
</pre>
</div>
</content>
</entry>
</feed>
