mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Issue20689: add missing API pieces to __all__
This commit is contained in:
commit
61358f4622
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
@ -454,6 +455,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"):
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue