One-liner critical fix from Jim Fulton: Eric's string-method crusade
got the order backwards in a line (for .find()).
This commit is contained in:
parent
4cf1227e56
commit
a29b6222fe
|
@ -119,7 +119,7 @@ class async_chat (asyncore.dispatcher):
|
||||||
# 3) end of buffer does not match any prefix:
|
# 3) end of buffer does not match any prefix:
|
||||||
# collect data
|
# collect data
|
||||||
terminator_len = len(terminator)
|
terminator_len = len(terminator)
|
||||||
index = terminator.find (self.ac_in_buffer)
|
index = ac_in_buffer.find (self.terminator)
|
||||||
if index != -1:
|
if index != -1:
|
||||||
# we found the terminator
|
# we found the terminator
|
||||||
if index > 0:
|
if index > 0:
|
||||||
|
|
Loading…
Reference in New Issue