Christian Heimes added the comment: The patch is incomplete. Please also check that type == SOCK_STREAM. The code can be simplified with a bitmask test:
if sock is not None: type = sock.type if type & socket.SOCK_STREAM != socket.SOCK_STREAM: raise NotImplementedError ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27629> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com