diff options
-rw-r--r-- | pexpect/pexpect.py | 2 |
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 |