mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Fixed bugs 760475, 953599, and 1519.
This commit is contained in:
parent
3b1e6b2f83
commit
ff5f42088b
3 changed files with 14 additions and 6 deletions
|
@ -59,7 +59,7 @@ class async_chat (asyncore.dispatcher):
|
|||
ac_in_buffer_size = 4096
|
||||
ac_out_buffer_size = 4096
|
||||
|
||||
def __init__ (self, conn=None):
|
||||
def __init__ (self, sock=None, map=None):
|
||||
# for string terminator matching
|
||||
self.ac_in_buffer = ''
|
||||
|
||||
|
@ -74,7 +74,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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue