summaryrefslogtreecommitdiffstats
path: root/Lib/asynchat.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-04-05 22:26:23 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-04-05 22:26:23 (GMT)
commita29b6222fe18ce79c8a16746bcdf2401389e4405 (patch)
tree63afc0afd17d7780cf71d8e7dd8e6d818b1117dd /Lib/asynchat.py
parent4cf1227e56d12d5ef890ac039e84e7d6e128c407 (diff)
downloadcpython-a29b6222fe18ce79c8a16746bcdf2401389e4405.zip
cpython-a29b6222fe18ce79c8a16746bcdf2401389e4405.tar.gz
cpython-a29b6222fe18ce79c8a16746bcdf2401389e4405.tar.bz2
One-liner critical fix from Jim Fulton: Eric's string-method crusade
got the order backwards in a line (for .find()).
Diffstat (limited to 'Lib/asynchat.py')
-rw-r--r--Lib/asynchat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asynchat.py b/Lib/asynchat.py
index bcbfc01..a46c1d4 100644
--- a/Lib/asynchat.py
+++ b/Lib/asynchat.py
@@ -119,7 +119,7 @@ class async_chat (asyncore.dispatcher):
# 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: