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

Victor Stinner webhook-mailer at python.org
Mon Nov 27 18:34:10 EST 2017


https://github.com/python/cpython/commit/28e61650b23119b68cd7943ccc01b8b9af1b4103
commit: 28e61650b23119b68cd7943ccc01b8b9af1b4103
branch: master
author: Victor Stinner <victor.stinner at gmail.com>
committer: GitHub <noreply at github.com>
date: 2017-11-28T00:34:08+01:00
summary:

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

files:
M Lib/asyncio/base_events.py

diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py
index bb04aef76e8..ffdb50f4bee 100644
--- a/Lib/asyncio/base_events.py
+++ b/Lib/asyncio/base_events.py
@@ -860,7 +860,7 @@ def create_datagram_endpoint(self, protocol_factory,
                 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)), )



More information about the Python-checkins mailing list