bpo-31245: asyncio: Fix typo, isistance => isinstance (#4594)
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 27 Nov 2017 23:34:08 +0000 (00:34 +0100)
committerGitHub <noreply@github.com>
Mon, 27 Nov 2017 23:34:08 +0000 (00:34 +0100)
Lib/asyncio/base_events.py

index bb04aef76e874e1cb9fc5bab0d8f719284279db7..ffdb50f4beea3ea07ed309cdead7251f7a906be5 100644 (file)
@@ -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)), )