Commit 8e120ac0 authored by Ethan Furman's avatar Ethan Furman

Issue20689: add missing API pieces to __all__

parent dd09efdd
...@@ -60,7 +60,8 @@ EBADF = getattr(errno, 'EBADF', 9) ...@@ -60,7 +60,8 @@ EBADF = getattr(errno, 'EBADF', 9)
EAGAIN = getattr(errno, 'EAGAIN', 11) EAGAIN = getattr(errno, 'EAGAIN', 11)
EWOULDBLOCK = getattr(errno, 'EWOULDBLOCK', 11) EWOULDBLOCK = getattr(errno, 'EWOULDBLOCK', 11)
__all__ = ["getfqdn", "create_connection"] __all__ = ["fromfd", "getfqdn", "create_connection",
"AddressFamily", "SocketKind"]
__all__.extend(os._get_exports_list(_socket)) __all__.extend(os._get_exports_list(_socket))
# Set up the socket.AF_* socket.SOCK_* constants as members of IntEnums for # Set up the socket.AF_* socket.SOCK_* constants as members of IntEnums for
...@@ -303,6 +304,7 @@ if hasattr(_socket.socket, "share"): ...@@ -303,6 +304,7 @@ if hasattr(_socket.socket, "share"):
socket.share(pid). socket.share(pid).
""" """
return socket(0, 0, 0, info) return socket(0, 0, 0, info)
__all__.append("fromshare")
if hasattr(_socket, "socketpair"): if hasattr(_socket, "socketpair"):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment