diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2016-05-16 19:32:26 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2016-05-16 19:32:26 (GMT) |
commit | 7c3ac2d1f82ed44a90de34d5bc6424c64b19ce68 (patch) | |
tree | dd5a2b0da596d7bc797198f8f88b392859c0ea0d /Lib/asyncio | |
parent | 4b23494ded6c452d2b777938654a10b2ad5122aa (diff) | |
parent | 7ed7ce6ee76c1e4aaa94151f156fb2ba5163b5b2 (diff) | |
download | cpython-7c3ac2d1f82ed44a90de34d5bc6424c64b19ce68.zip cpython-7c3ac2d1f82ed44a90de34d5bc6424c64b19ce68.tar.gz cpython-7c3ac2d1f82ed44a90de34d5bc6424c64b19ce68.tar.bz2 |
Merge 3.5 (issue #27040)
Diffstat (limited to 'Lib/asyncio')
-rw-r--r-- | Lib/asyncio/base_events.py | 5 | ||||
-rw-r--r-- | Lib/asyncio/events.py | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index 99d503f..6e93d6d 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -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. diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py index 176a846..8358ebf 100644 --- a/Lib/asyncio/events.py +++ b/Lib/asyncio/events.py @@ -484,6 +484,9 @@ class AbstractEventLoop: # Error handlers. + def get_exception_handler(self): + raise NotImplementedError + def set_exception_handler(self, handler): raise NotImplementedError |