diff options
author | Yury Selivanov <yury@magic.io> | 2016-11-09 20:47:47 (GMT) |
---|---|---|
committer | Yury Selivanov <yury@magic.io> | 2016-11-09 20:47:47 (GMT) |
commit | 954c7dd0ccbe01668856d6a9816aeb1fe07bce7e (patch) | |
tree | 16bbc28ba590cf3d68c21406349e2b2cf431c002 /Lib/asyncio/unix_events.py | |
parent | 6c1065061770e843f55be0506489c931a2cb7e96 (diff) | |
parent | a1a8b7d3d7f628aec31be364c77cbb3e21cdbc0b (diff) | |
download | cpython-954c7dd0ccbe01668856d6a9816aeb1fe07bce7e.zip cpython-954c7dd0ccbe01668856d6a9816aeb1fe07bce7e.tar.gz cpython-954c7dd0ccbe01668856d6a9816aeb1fe07bce7e.tar.bz2 |
Merge 3.5 (issue #28652)
Diffstat (limited to 'Lib/asyncio/unix_events.py')
-rw-r--r-- | Lib/asyncio/unix_events.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py index 2843678..46e91f6 100644 --- a/Lib/asyncio/unix_events.py +++ b/Lib/asyncio/unix_events.py @@ -235,7 +235,7 @@ class _UnixSelectorEventLoop(selector_events.BaseSelectorEventLoop): if sock is None: raise ValueError('no path and sock were specified') if (sock.family != socket.AF_UNIX or - sock.type != socket.SOCK_STREAM): + not base_events._is_stream_socket(sock)): raise ValueError( 'A UNIX Domain Stream Socket was expected, got {!r}' .format(sock)) @@ -289,7 +289,7 @@ class _UnixSelectorEventLoop(selector_events.BaseSelectorEventLoop): 'path was not specified, and no sock specified') if (sock.family != socket.AF_UNIX or - sock.type != socket.SOCK_STREAM): + not base_events._is_stream_socket(sock)): raise ValueError( 'A UNIX Domain Stream Socket was expected, got {!r}' .format(sock)) |