diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-02-09 05:07:04 (GMT) |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-02-09 05:07:04 (GMT) |
commit | b49f4a4b15228799aad77ba569971a23d21cc4f7 (patch) | |
tree | fca74bb59fa56fde8e2a23f209b41157172977d9 /Lib/asynchat.py | |
parent | 20e4423adef209d2260fd952533dc2360e2d257e (diff) | |
download | cpython-b49f4a4b15228799aad77ba569971a23d21cc4f7.zip cpython-b49f4a4b15228799aad77ba569971a23d21cc4f7.tar.gz cpython-b49f4a4b15228799aad77ba569971a23d21cc4f7.tar.bz2 |
String method conversion.
Diffstat (limited to 'Lib/asynchat.py')
-rw-r--r-- | Lib/asynchat.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/asynchat.py b/Lib/asynchat.py index 0ce5f43..88873d2 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: |