diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2016-05-16 15:20:38 -0400 |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2016-05-16 15:20:38 -0400 |
commit | 7ed7ce6ee76c1e4aaa94151f156fb2ba5163b5b2 (patch) | |
tree | 532e8aebf2f66b89853e8e3a2dad957d563ee355 /Lib/asyncio/base_events.py | |
parent | 7bf36dace8c3d3714dfe5175891612450cb82ce5 (diff) | |
download | cpython-git-7ed7ce6ee76c1e4aaa94151f156fb2ba5163b5b2.tar.gz |
Issue #27040: Add loop.get_exception_handler method
Diffstat (limited to 'Lib/asyncio/base_events.py')
-rw-r--r-- | Lib/asyncio/base_events.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index 3703480eba..ada178f37f 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -1078,6 +1078,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. |