[Python-checkins] CVS: python/dist/src/Lib asynchat.py,1.9,1.10
Eric S. Raymond
esr@users.sourceforge.net
Thu, 08 Feb 2001 21:04:50 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv3923
Modified Files:
asynchat.py
Log Message:
String method conversion.
Index: asynchat.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/asynchat.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** asynchat.py 2001/01/24 21:10:55 1.9
--- asynchat.py 2001/02/09 05:04:48 1.10
***************
*** 49,53 ****
import socket
import asyncore
- import string
class async_chat (asyncore.dispatcher):
--- 49,52 ----
***************
*** 121,125 ****
# collect data
terminator_len = len(terminator)
! index = string.find (self.ac_in_buffer, terminator)
if index != -1:
# we found the terminator
--- 120,124 ----
# collect data
terminator_len = len(terminator)
! index = terminator.find (self.ac_in_buffer)
if index != -1:
# we found the terminator