diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-01-27 23:30:40 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-01-27 23:30:40 (GMT) |
commit | ff018e406cd96d117b54edcb30808a56fc2f689a (patch) | |
tree | 79641c031a2bbd8f80387304dd6b2867bb14a7a0 /Lib/asyncio | |
parent | b68c420d8ad38f8e4f7625f388a6219ea61cd203 (diff) | |
download | cpython-ff018e406cd96d117b54edcb30808a56fc2f689a.zip cpython-ff018e406cd96d117b54edcb30808a56fc2f689a.tar.gz cpython-ff018e406cd96d117b54edcb30808a56fc2f689a.tar.bz2 |
asyncio: sync with Tulip
* Remove unused SSLProtocol._closing attribute
* test_sslproto: skip test if ssl module is missing
* Python issue #23208: Don't use the traceback of the current handle if we
already know the traceback of the source. The handle may be more revelant,
but having 3 tracebacks (handle, source, exception) becomes more difficult to
read. The handle may be preferred later but it requires more work to make
this choice.
Diffstat (limited to 'Lib/asyncio')
-rw-r--r-- | Lib/asyncio/base_events.py | 3 | ||||
-rw-r--r-- | Lib/asyncio/sslproto.py | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index 1c51a7c..e40d3ad 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -956,7 +956,8 @@ class BaseEventLoop(events.AbstractEventLoop): else: exc_info = False - if (self._current_handle is not None + if ('source_traceback' not in context + and self._current_handle is not None and self._current_handle._source_traceback): context['handle_traceback'] = self._current_handle._source_traceback diff --git a/Lib/asyncio/sslproto.py b/Lib/asyncio/sslproto.py index 117dc56..f2b856c 100644 --- a/Lib/asyncio/sslproto.py +++ b/Lib/asyncio/sslproto.py @@ -408,7 +408,6 @@ class SSLProtocol(protocols.Protocol): self._write_buffer_size = 0 self._waiter = waiter - self._closing = False self._loop = loop self._app_protocol = app_protocol self._app_transport = _SSLProtocolTransport(self._loop, |