Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_ssl.py @ 65088:c28fdeeea786
Fix issue 6706: adds new handle_accepted() method to asyncore.dispatcher
| author | Giampaolo Rodolà <g.rodola@gmail.com> |
|---|---|
| date | Mon, 04 Oct 2010 21:08:36 +0000 |
| parents | 0e96f9fa84a2 |
| children | 4c98eeff37e7 |
line wrap: on
line diff
--- a/Lib/test/test_ssl.py Mon Oct 04 15:48:14 2010 +0000 +++ b/Lib/test/test_ssl.py Mon Oct 04 21:08:36 2010 +0000 @@ -838,8 +838,7 @@ asyncore.dispatcher.__init__(self, sock) self.listen(5) - def handle_accept(self): - sock_obj, addr = self.accept() + def handle_accepted(self, sock_obj, addr): if support.verbose: sys.stdout.write(" server: new connection from %s:%s\n" %addr) self.ConnectionHandler(sock_obj, self.certfile)
