mirror of
https://github.com/python/cpython.git
synced 2025-10-07 07:31:46 +00:00
bpo-31245: asyncio: Fix typo, isistance => isinstance (#4594)
This commit is contained in:
parent
c9409f7c45
commit
28e61650b2
1 changed files with 1 additions and 1 deletions
|
@ -860,7 +860,7 @@ class BaseEventLoop(events.AbstractEventLoop):
|
|||
addr_pairs_info = (((family, proto), (None, None)),)
|
||||
elif hasattr(socket, 'AF_UNIX') and family == socket.AF_UNIX:
|
||||
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')
|
||||
addr_pairs_info = (((family, proto),
|
||||
(local_addr, remote_addr)), )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue