Skip to content

Commit b90a0c6

Browse files
committed
_socket add SocketType member
1 parent adbbdc8 commit b90a0c6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

graalpython/lib-graalpython/_socket.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,16 @@
5151
error = OSError
5252
__default_timeout = None
5353

54+
5455
def getdefaulttimeout():
5556
return __default_timeout
5657

58+
5759
def setdefaulttimeout(timeout):
5860
global __default_timeout
5961
__default_timeout = timeout
6062

63+
64+
_sock = socket()
65+
SocketType = type(_sock)
66+
del _sock

0 commit comments

Comments
 (0)