Skip to content

Commit fae620a

Browse files
authored
use _socket.SocketType
1 parent e07a953 commit fae620a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/socket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969

7070
def __getattr__(name):
7171
if name == "SocketType":
72-
return _socket.socket
72+
return _socket.SocketType
7373
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
7474

7575
# Set up the socket.AF_* socket.SOCK_* constants as members of IntEnums for

0 commit comments

Comments
 (0)