mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Issue #16274: Fix test_asyncore on Solaris.
This commit is contained in:
parent
e793f44abe
commit
e9992292be
2 changed files with 5 additions and 2 deletions
|
|
@ -484,8 +484,9 @@ class TCPServer(asyncore.dispatcher):
|
|||
return self.socket.getsockname()[:2]
|
||||
|
||||
def handle_accept(self):
|
||||
sock, addr = self.accept()
|
||||
self.handler(sock)
|
||||
pair = self.accept()
|
||||
if pair is not None:
|
||||
self.handler(pair[0])
|
||||
|
||||
def handle_error(self):
|
||||
raise
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue