Commit 774e0f8d authored by Denis Bilenko's avatar Denis Bilenko

socket.py: add dummy SSL.Error so that socket.py could work without OpenSSL

parent f0eb2c90
......@@ -54,6 +54,10 @@ except ImportError:
class SysCallError(object):
pass
class Error(object):
pass
CONNECT_ERR = (errno.EINPROGRESS, errno.EALREADY, errno.EWOULDBLOCK)
CONNECT_SUCCESS = (0, errno.EISCONN)
def socket_connect(descriptor, address):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment