summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Furman <ethan@stoneleaf.us>2014-10-18 22:10:49 (GMT)
committerEthan Furman <ethan@stoneleaf.us>2014-10-18 22:10:49 (GMT)
commit8e120ac05c2bec63c36addc554f9661da3b6ccf9 (patch)
treef01bebdd7ba28713af228e6b6b3478c6114e3624
parentdd09efdd530c754a93867045d3b46878426b18b2 (diff)
downloadcpython-8e120ac05c2bec63c36addc554f9661da3b6ccf9.zip
cpython-8e120ac05c2bec63c36addc554f9661da3b6ccf9.tar.gz
cpython-8e120ac05c2bec63c36addc554f9661da3b6ccf9.tar.bz2
Issue20689: add missing API pieces to __all__
-rw-r--r--Lib/socket.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/socket.py b/Lib/socket.py
index a3bdca6..fd2a7d4 100644
--- a/Lib/socket.py
+++ b/Lib/socket.py
@@ -60,7 +60,8 @@ EBADF = getattr(errno, 'EBADF', 9)
EAGAIN = getattr(errno, 'EAGAIN', 11)
EWOULDBLOCK = getattr(errno, 'EWOULDBLOCK', 11)
-__all__ = ["getfqdn", "create_connection"]
+__all__ = ["fromfd", "getfqdn", "create_connection",
+ "AddressFamily", "SocketKind"]
__all__.extend(os._get_exports_list(_socket))
# Set up the socket.AF_* socket.SOCK_* constants as members of IntEnums for
@@ -303,6 +304,7 @@ if hasattr(_socket.socket, "share"):
socket.share(pid).
"""
return socket(0, 0, 0, info)
+ __all__.append("fromshare")
if hasattr(_socket, "socketpair"):