summaryrefslogtreecommitdiff
path: root/pexpect
diff options
context:
space:
mode:
Diffstat (limited to 'pexpect')
-rw-r--r--pexpect/pexpect.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pexpect/pexpect.py b/pexpect/pexpect.py
index a2d63a7..c3c71a5 100644
--- a/pexpect/pexpect.py
+++ b/pexpect/pexpect.py
@@ -1662,6 +1662,7 @@ class ReSearch (object):
If there is a match, returns the index of that string, and
sets 'start', 'end' and 'match'. Otherwise, returns -1.
"""
+ # TODO, I should double-check that this logic follows the old re.search logic.
absurd_match = len(buffer)
first_match = absurd_match
# 'freshlen' doesn't help here -- we cannot predict the