Skip to content

Commit 188a924

Browse files
authored
socket rename to SocketType
1 parent 3b7d187 commit 188a924

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.socket
74+
return _socket.SockType
7575

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

0 commit comments

Comments
 (0)