Fix issue 6706: adds new handle_accepted() method to asyncore.dispatcher

This commit is contained in:
Giampaolo Rodolà 2010-10-04 21:08:36 +00:00
parent 4c94c53630
commit 977c707b42
10 changed files with 126 additions and 42 deletions

View file

@ -379,8 +379,7 @@ class SimSMTPServer(smtpd.SMTPServer):
self._extra_features = []
smtpd.SMTPServer.__init__(self, *args, **kw)
def handle_accept(self):
conn, addr = self.accept()
def handle_accepted(self, conn, addr):
self._SMTPchannel = SimSMTPChannel(self._extra_features,
self, conn, addr)