Fixed bugs 760475, 953599, and 1519. This is a translation of changelist 64768

to the py3k branch.
This commit is contained in:
Josiah Carlson 2008-07-07 05:04:12 +00:00
parent 35bf9bf68c
commit 9f2f83338f
3 changed files with 14 additions and 6 deletions

View file

@ -77,7 +77,7 @@ class async_chat (asyncore.dispatcher):
use_encoding = 0
encoding = 'latin1'
def __init__ (self, conn=None):
def __init__ (self, sock=None, map=None):
# for string terminator matching
self.ac_in_buffer = b''
@ -92,7 +92,7 @@ class async_chat (asyncore.dispatcher):
# we toss the use of the "simple producer" and replace it with
# a pure deque, which the original fifo was a wrapping of
self.producer_fifo = deque()
asyncore.dispatcher.__init__ (self, conn)
asyncore.dispatcher.__init__ (self, sock, map)
def collect_incoming_data(self, data):
raise NotImplementedError("must be implemented in subclass")