mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Fix issue 6706: adds new handle_accepted() method to asyncore.dispatcher
This commit is contained in:
parent
4c94c53630
commit
977c707b42
10 changed files with 126 additions and 42 deletions
|
@ -144,8 +144,7 @@ class DummyPOP3Server(asyncore.dispatcher, threading.Thread):
|
|||
self.active = False
|
||||
self.join()
|
||||
|
||||
def handle_accept(self):
|
||||
conn, addr = self.accept()
|
||||
def handle_accepted(self, conn, addr):
|
||||
self.handler_instance = self.handler(conn)
|
||||
|
||||
def handle_connect(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue