pexpect/pexpect — pull request #142 by jquast (2014-11-22 19:41:10+00:00)
Title: Failure in __str__() before any output.

When calling str() on a spawn class object before it has any command output, the ``__str__()`` impl. attempts to truncate buffer output while the value of ``self.before`` is still None, raising:

TypeError: 'NoneType' object has no attribute '__getitem__'