mirror of
https://github.com/python/cpython.git
synced 2025-10-16 19:57:59 +00:00
Merged revisions 80882 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r80882 | giampaolo.rodola | 2010-05-06 22:19:32 +0200 (gio, 06 mag 2010) | 1 line adds handle_error(self):raise to test modules using asyncore to provide a clearer error message in case something goes wrong ........
This commit is contained in:
parent
d61e397b12
commit
d930b63583
2 changed files with 9 additions and 0 deletions
|
@ -50,6 +50,9 @@ class DummyDTPHandler(asynchat.async_chat):
|
|||
def push(self, what):
|
||||
super(DummyDTPHandler, self).push(what.encode('ascii'))
|
||||
|
||||
def handle_error(self):
|
||||
raise
|
||||
|
||||
|
||||
class DummyFTPHandler(asynchat.async_chat):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue