bpo-31245: asyncio: Fix typo, isistance => isinstance (#4594)

This commit is contained in:
Victor Stinner 2017-11-28 00:34:08 +01:00 committed by GitHub
parent c9409f7c45
commit 28e61650b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)), )