Skip to content

Commit 28e6165

Browse files
authored
bpo-31245: asyncio: Fix typo, isistance => isinstance (#4594)
1 parent c9409f7 commit 28e6165

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/asyncio/base_events.py

Lines changed: 1 addition & 1 deletion
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)), )

0 commit comments

Comments
 (0)