def wait(self, timeout=None):
if timeout is None:<EOL><INDENT>timeout = self._timeout<EOL><DEDENT>while self._process.check_readable(timeout):<EOL><INDENT>self._flush()<EOL><DEDENT>
Wait for response until timeout.
If timeout is specified to None, ``self.timeout`` is used.

:param float timeout: seconds to wait I/O