diff options
author | Jeff Quast <contact@jeffquast.com> | 2015-12-12 16:02:53 -0800 |
---|---|---|
committer | Jeff Quast <contact@jeffquast.com> | 2015-12-12 16:02:53 -0800 |
commit | 5e6e2a1d01ef1943b69217d07f4202268b1b2a78 (patch) | |
tree | 3bde71c7aa2f919bd483a2b594182d9b8fdd0bf1 | |
parent | b1a57339c2f3c822f5ffa22c1ee2e1bcf4705a4b (diff) | |
download | pexpect-git-5e6e2a1d01ef1943b69217d07f4202268b1b2a78.tar.gz |
re-introduce self.flag_eof = True
Reverting code removed in 3446e6d160
-rw-r--r-- | pexpect/pty_spawn.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pexpect/pty_spawn.py b/pexpect/pty_spawn.py index c800c7f..66b2c0b 100644 --- a/pexpect/pty_spawn.py +++ b/pexpect/pty_spawn.py @@ -452,6 +452,7 @@ class spawn(SpawnBase): # For this case, I test isalive() before doing any reading. # If isalive() is false, then I pretend that this is the same as EOF. if not self.isalive(): + self.flag_eof = True raise EOF('End Of File (EOF). Braindead platform.') elif self.__irix_hack: # Irix takes a long time before it realizes a child was terminated. |