diff options
author | Josiah Carlson <josiah.carlson@gmail.com> | 2008-07-07 04:51:46 (GMT) |
---|---|---|
committer | Josiah Carlson <josiah.carlson@gmail.com> | 2008-07-07 04:51:46 (GMT) |
commit | ff5f42088bdbe9fe801a52ba3a9d63bbaacdf2a2 (patch) | |
tree | 3b3f592891450032d0f3769d70540434550627d3 /Lib/asynchat.py | |
parent | 3b1e6b2f833d1e030b2ff853e1a942dc0de968f5 (diff) | |
download | cpython-ff5f42088bdbe9fe801a52ba3a9d63bbaacdf2a2.zip cpython-ff5f42088bdbe9fe801a52ba3a9d63bbaacdf2a2.tar.gz cpython-ff5f42088bdbe9fe801a52ba3a9d63bbaacdf2a2.tar.bz2 |
Fixed bugs 760475, 953599, and 1519.
Diffstat (limited to 'Lib/asynchat.py')
-rw-r--r-- | Lib/asynchat.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asynchat.py b/Lib/asynchat.py index 1d5fb7f..8a7176d 100644 --- a/Lib/asynchat.py +++ b/Lib/asynchat.py @@ -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") |