pexpect/pexpect — pull request #23 by finder (2013-11-09 22:58:18+00:00)
Title: Fix for stdin having eoi as well, break since data won't be populated

I was able to duplicate the OSError while using stdin and vim:
pexpect.spawn('vim'
pexpect.interact()

added the breaks since there shouldn't be a local data that's valid after the exception