mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-29742: asyncio get_extra_info() throws exception (#525)
This commit is contained in:
parent
783d0c1a1c
commit
2b27e2e6a3
3 changed files with 18 additions and 1 deletions
|
@ -543,8 +543,10 @@ class SSLProtocol(protocols.Protocol):
|
|||
def _get_extra_info(self, name, default=None):
|
||||
if name in self._extra:
|
||||
return self._extra[name]
|
||||
else:
|
||||
elif self._transport is not None:
|
||||
return self._transport.get_extra_info(name, default)
|
||||
else:
|
||||
return default
|
||||
|
||||
def _start_shutdown(self):
|
||||
if self._in_shutdown:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue