From a0f5cf5feeb8f0c7eda223939f5810db258c77e5 Mon Sep 17 00:00:00 2001 From: David Cullen Date: Wed, 29 Jun 2016 12:33:26 -0400 Subject: Improve docstring for read_nonblocking in fdspawn. --- pexpect/fdpexpect.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pexpect/fdpexpect.py b/pexpect/fdpexpect.py index 25b5c8d..785bc10 100644 --- a/pexpect/fdpexpect.py +++ b/pexpect/fdpexpect.py @@ -115,10 +115,10 @@ class fdspawn(SpawnBase): self.write(s) def read_nonblocking(self, size=1, timeout=-1): - '''The read_nonblocking method of fdspawn assumes that the file - will never block. This is not the case for all file like objects - that support fileno (e.g. POSIX sockets and serial ports). So we - use select to implement the timeout on POSIX.''' + """The read_nonblocking method of SpawnBase assumes that a call to + os.read will not block. This is not the case for POSIX file like + objects like sockets and serial ports. So we use select to implement + the timeout on POSIX.""" if os.name == 'posix': if timeout == -1: timeout = self.timeout -- cgit v1.2.1