diff options
author | Giampaolo RodolĂ <g.rodola@gmail.com> | 2010-10-04 21:08:36 (GMT) |
---|---|---|
committer | Giampaolo RodolĂ <g.rodola@gmail.com> | 2010-10-04 21:08:36 (GMT) |
commit | 977c707b425ee753d54f3e9010f07ec77ef61274 (patch) | |
tree | 580e12fd41103a684b4c24b53d43569eb69bc6a8 /Lib/test/test_smtplib.py | |
parent | 4c94c5363091350ed56bfbdbc6cc00e1048b456c (diff) | |
download | cpython-977c707b425ee753d54f3e9010f07ec77ef61274.zip cpython-977c707b425ee753d54f3e9010f07ec77ef61274.tar.gz cpython-977c707b425ee753d54f3e9010f07ec77ef61274.tar.bz2 |
Fix issue 6706: adds new handle_accepted() method to asyncore.dispatcher
Diffstat (limited to 'Lib/test/test_smtplib.py')
-rw-r--r-- | Lib/test/test_smtplib.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_smtplib.py b/Lib/test/test_smtplib.py index 831f2d7..230899b 100644 --- a/Lib/test/test_smtplib.py +++ b/Lib/test/test_smtplib.py @@ -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) |