Skip to content

Commit

Permalink
additional Nonetype timeout accomidation
Browse files Browse the repository at this point in the history
  • Loading branch information
jquast committed May 25, 2014
1 parent ef96998 commit cccf1b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pexpect/__init__.py
Expand Up @@ -882,8 +882,8 @@ def read_nonblocking(self, size=1, timeout=-1, poll_exit=0.15):

if timeout == -1:
timeout = self.timeout

poll_exit = min(poll_exit, timeout)
elif timeout is not None:
poll_exit = min(poll_exit, timeout)

# Note that some systems such as Solaris do not give an EOF when
# the child dies. In fact, you can still try to read
Expand Down

0 comments on commit cccf1b3

Please sign in to comment.