We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 362dbab commit 5042f2fCopy full SHA for 5042f2f
Lib/socket.py
@@ -72,7 +72,7 @@ def __getattr__(name):
72
import warnings
73
warnings.warn(f"{name} is deprecated", DeprecationWarning)
74
return _socket.socket
75
-
+ raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
76
# Set up the socket.AF_* socket.SOCK_* constants as members of IntEnums for
77
# nicer string representations.
78
# Note that _socket only knows about the integer values. The public interface
0 commit comments