Commit 47dfc4cb authored by Denis Bilenko's avatar Denis Bilenko

socket: add SocketType as an alias to socket

parent d930f94e
......@@ -46,7 +46,8 @@ __all__ = ['create_connection',
'socketpair',
'timeout',
'ssl',
'sslerror']
'sslerror',
'SocketType']
import sys
import errno
......@@ -444,6 +445,8 @@ class socket(object):
exec _s % (_m, _m, _m, _m)
del _m, _s
SocketType = socket
def socketpair(*args):
one, two = _socket.socketpair(*args)
......
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