From b49f4a4b15228799aad77ba569971a23d21cc4f7 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 9 Feb 2001 05:07:04 +0000 Subject: String method conversion. --- Lib/asynchat.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Lib/asynchat.py') diff --git a/Lib/asynchat.py b/Lib/asynchat.py index 0ce5f434f2..88873d28d3 100644 --- a/Lib/asynchat.py +++ b/Lib/asynchat.py @@ -48,7 +48,6 @@ you - by calling your self.found_terminator() method. import socket import asyncore -import string class async_chat (asyncore.dispatcher): """This is an abstract class. You must derive from this class, and add @@ -120,7 +119,7 @@ class async_chat (asyncore.dispatcher): # 3) end of buffer does not match any prefix: # collect data terminator_len = len(terminator) - index = string.find (self.ac_in_buffer, terminator) + index = terminator.find (self.ac_in_buffer) if index != -1: # we found the terminator if index > 0: -- cgit v1.2.1