[Python-checkins] CVS: python/dist/src/Lib asynchat.py,1.11,1.12

Tim Peters tim_one@users.sourceforge.net
Thu, 05 Apr 2001 15:26:25 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv22298/python/dist/src/Lib

Modified Files:
	asynchat.py 
Log Message:
One-liner critical fix from Jim Fulton:  Eric's string-method crusade
got the order backwards in a line (for .find()).


Index: asynchat.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/asynchat.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** asynchat.py	2001/02/09 20:06:00	1.11
--- asynchat.py	2001/04/05 22:26:23	1.12
***************
*** 120,124 ****
                  #    collect data
                  terminator_len = len(terminator)
!                 index = terminator.find (self.ac_in_buffer)
                  if index != -1:
                      # we found the terminator
--- 120,124 ----
                  #    collect data
                  terminator_len = len(terminator)
!                 index = ac_in_buffer.find (self.terminator)
                  if index != -1:
                      # we found the terminator