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_ftplib.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_ftplib.py')
-rw-r--r-- | Lib/test/test_ftplib.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_ftplib.py b/Lib/test/test_ftplib.py index 8164ede..c9bb06e 100644 --- a/Lib/test/test_ftplib.py +++ b/Lib/test/test_ftplib.py @@ -244,8 +244,7 @@ class DummyFTPServer(asyncore.dispatcher, threading.Thread): self.active = False self.join() - def handle_accept(self): - conn, addr = self.accept() + def handle_accepted(self, conn, addr): self.handler_instance = self.handler(conn) def handle_connect(self): |