Issue #16274: revert r79813:90a46f8943d0 changes to asyncore/test_asyncore.

The backport from 3.2 included a few things not appropriate for 2.7.
This commit is contained in:
Trent Nelson 2012-10-18 07:44:43 -04:00
parent 0622f6c14c
commit 02f69f6965
2 changed files with 7 additions and 38 deletions

View file

@ -515,13 +515,7 @@ class dispatcher:
self.log_info('unhandled connect event', 'warning')
def handle_accept(self):
pair = self.accept()
if pair is not None:
self.handle_accepted(*pair)
def handle_accepted(self, sock, addr):
sock.close()
self.log_info('unhandled accepted event', 'warning')
self.log_info('unhandled accept event', 'warning')
def handle_close(self):
self.log_info('unhandled close event', 'warning')