Skip to content

Commit 362dbab

Browse files
committed
Return _socket.socket
1 parent ce4bfa6 commit 362dbab

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
@@ -71,7 +71,7 @@ def __getattr__(name):
7171
if name == "SocketType":
7272
import warnings
7373
warnings.warn(f"{name} is deprecated", DeprecationWarning)
74-
return _socket.SockType
74+
return _socket.socket
7575

7676
# Set up the socket.AF_* socket.SOCK_* constants as members of IntEnums for
7777
# nicer string representations.

0 commit comments

Comments
 (0)