Mercurial > cpython-lru_cache-weakref
changeset 17322:bd110eadc19a legacy-trunk
One-liner critical fix from Jim Fulton: Eric's string-method crusade
got the order backwards in a line (for .find()).
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Thu, 05 Apr 2001 22:26:23 +0000 |
| parents | 9b8ea6387dc6 |
| children | e7f5b70b0606 |
| files | Lib/asynchat.py |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Lib/asynchat.py Thu Apr 05 18:31:27 2001 +0000 +++ b/Lib/asynchat.py Thu Apr 05 22:26:23 2001 +0000 @@ -119,7 +119,7 @@ # 3) end of buffer does not match any prefix: # collect data terminator_len = len(terminator) - index = terminator.find (self.ac_in_buffer) + index = ac_in_buffer.find (self.terminator) if index != -1: # we found the terminator if index > 0:
