From a29b6222fe18ce79c8a16746bcdf2401389e4405 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Thu, 5 Apr 2001 22:26:23 +0000 Subject: [PATCH] One-liner critical fix from Jim Fulton: Eric's string-method crusade got the order backwards in a line (for .find()). --- Lib/asynchat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/asynchat.py b/Lib/asynchat.py index bcbfc012863..a46c1d42ac9 100644 --- a/Lib/asynchat.py +++ b/Lib/asynchat.py @@ -119,7 +119,7 @@ def handle_read (self): # 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: