# HG changeset patch # User Tim Peters # Date 986509583 0 # Node ID bd110eadc19ad409951bf3af302c14d49a45e770 # Parent 9b8ea6387dc609fd0a93f4f469bc6880813e47c0 One-liner critical fix from Jim Fulton: Eric's string-method crusade got the order backwards in a line (for .find()). diff -r 9b8ea6387dc6 -r bd110eadc19a Lib/asynchat.py --- 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: