bpo-31245: asyncio: Fix typo, isistance => isinstance (#4594) · python/cpython@28e6165

Original file line numberDiff line numberDiff line change

@@ -860,7 +860,7 @@ def create_datagram_endpoint(self, protocol_factory,

860860

addr_pairs_info = (((family, proto), (None, None)),)

861861

elif hasattr(socket, 'AF_UNIX') and family == socket.AF_UNIX:

862862

for addr in (local_addr, remote_addr):

863-

if addr is not None and not isistance(addr, str):

863+

if addr is not None and not isinstance(addr, str):

864864

raise TypeError('string is expected')

865865

addr_pairs_info = (((family, proto),

866866

(local_addr, remote_addr)), )