summaryrefslogtreecommitdiff
path: root/pexpect/spawnbase.py
diff options
context:
space:
mode:
authorJeff Quast <contact@jeffquast.com>2015-09-22 12:42:24 -0700
committerJeff Quast <contact@jeffquast.com>2015-09-22 12:42:24 -0700
commit3c1bc018218b86177e1cdf8e93ead035afacc421 (patch)
tree7c928ee4ad19c6c9610849f5f3b4bde7b5e8d4c4 /pexpect/spawnbase.py
parentae480683db601dc162ab2d02643ff84e1c3786be (diff)
parentea586fb9a545854f9b1212779653ec80f3428a2c (diff)
downloadpexpect-default-handle-sighup-pull.tar.gz
Merge remote-tracking branch 'origin/master' into default-handle-sighupdefault-handle-sighup-pull
Diffstat (limited to 'pexpect/spawnbase.py')
-rw-r--r--pexpect/spawnbase.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/pexpect/spawnbase.py b/pexpect/spawnbase.py
index aa7ef86..0518d83 100644
--- a/pexpect/spawnbase.py
+++ b/pexpect/spawnbase.py
@@ -251,7 +251,10 @@ class SpawnBase(object):
*before* is all data received up to the exception, while *match* and
*after* attributes are value None.
- If timeout is -1 then timeout will be set to the self.timeout value.
+ When the keyword argument timeout is -1 (default), then TIMEOUT will
+ raise after the default value specified by the class timeout
+ attribute. When None, TIMEOUT will not be raised and may block
+ indefinitely until match.
When the keyword argument searchwindowsize is -1 (default), then the
value specified by the class maxread attribute is used.
@@ -319,9 +322,8 @@ class SpawnBase(object):
expressions). This method is similar to the expect() method except that
expect_list() does not recompile the pattern list on every call. This
may help if you are trying to optimize for speed, otherwise just use
- the expect() method. This is called by expect(). If timeout==-1 then
- the self.timeout value is used. If searchwindowsize==-1 then the
- self.searchwindowsize value is used.
+ the expect() method. This is called by expect().
+
Like :meth:`expect`, passing ``async=True`` will make this return an
asyncio coroutine.