summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornoah <noah@656d521f-e311-0410-88e0-e7920216d269>2008-03-22 00:46:10 +0000
committernoah <noah@656d521f-e311-0410-88e0-e7920216d269>2008-03-22 00:46:10 +0000
commit1b79c4f7e6024e1618a68e8f89126dfbad167bfe (patch)
treefaa47e6db2ab9501112870310eb5a865b33b9d60
parented3d259ce0d384ce4b0cac650331de0494e3aeb9 (diff)
downloadpexpect-1b79c4f7e6024e1618a68e8f89126dfbad167bfe.tar.gz
Following up on all the bug reports on SourceForge.net.
git-svn-id: http://pexpect.svn.sourceforge.net/svnroot/pexpect/trunk@515 656d521f-e311-0410-88e0-e7920216d269
-rw-r--r--pexpect/pexpect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pexpect/pexpect.py b/pexpect/pexpect.py
index fda6a5c..9e92c84 100644
--- a/pexpect/pexpect.py
+++ b/pexpect/pexpect.py
@@ -1235,7 +1235,7 @@ class spawn (object):
return compiled_pattern_list
- def expect(self, pattern, timeout = -1, searchwindowsize=None):
+ def expect(self, pattern, timeout = -1, searchwindowsize=-1):
"""This seeks through the stream until a pattern is matched. The
pattern is overloaded and may take several types. The pattern can be a