mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Merge 3.5 (issue #27040)
This commit is contained in:
commit
7c3ac2d1f8
4 changed files with 12 additions and 0 deletions
|
@ -1079,6 +1079,11 @@ class BaseEventLoop(events.AbstractEventLoop):
|
|||
logger.info('%s: %r' % (debug_log, transport))
|
||||
return transport, protocol
|
||||
|
||||
def get_exception_handler(self):
|
||||
"""Return an exception handler, or None if the default one is in use.
|
||||
"""
|
||||
return self._exception_handler
|
||||
|
||||
def set_exception_handler(self, handler):
|
||||
"""Set handler as the new event loop exception handler.
|
||||
|
||||
|
|
|
@ -484,6 +484,9 @@ class AbstractEventLoop:
|
|||
|
||||
# Error handlers.
|
||||
|
||||
def get_exception_handler(self):
|
||||
raise NotImplementedError
|
||||
|
||||
def set_exception_handler(self, handler):
|
||||
raise NotImplementedError
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue