mirror of https://github.com/python/cpython
bpo-31245: asyncio: Fix typo, isistance => isinstance (#4594)
This commit is contained in:
parent
c9409f7c45
commit
28e61650b2
|
@ -860,7 +860,7 @@ class BaseEventLoop(events.AbstractEventLoop):
|
||||||
addr_pairs_info = (((family, proto), (None, None)),)
|
addr_pairs_info = (((family, proto), (None, None)),)
|
||||||
elif hasattr(socket, 'AF_UNIX') and family == socket.AF_UNIX:
|
elif hasattr(socket, 'AF_UNIX') and family == socket.AF_UNIX:
|
||||||
for addr in (local_addr, remote_addr):
|
for addr in (local_addr, remote_addr):
|
||||||
if addr is not None and not isistance(addr, str):
|
if addr is not None and not isinstance(addr, str):
|
||||||
raise TypeError('string is expected')
|
raise TypeError('string is expected')
|
||||||
addr_pairs_info = (((family, proto),
|
addr_pairs_info = (((family, proto),
|
||||||
(local_addr, remote_addr)), )
|
(local_addr, remote_addr)), )
|
||||||
|
|
Loading…
Reference in New Issue