diff options
author | Ethan Furman <ethan@stoneleaf.us> | 2014-10-18 22:11:03 (GMT) |
---|---|---|
committer | Ethan Furman <ethan@stoneleaf.us> | 2014-10-18 22:11:03 (GMT) |
commit | 61358f46229d31ed8d14f9b7995f572be13172db (patch) | |
tree | c934f57a156c84580d7a289722195da05ee93f31 /Lib/socket.py | |
parent | 36d99dcf2b890b7867f54a3ca973e050a5e4115e (diff) | |
parent | 8e120ac05c2bec63c36addc554f9661da3b6ccf9 (diff) | |
download | cpython-61358f46229d31ed8d14f9b7995f572be13172db.zip cpython-61358f46229d31ed8d14f9b7995f572be13172db.tar.gz cpython-61358f46229d31ed8d14f9b7995f572be13172db.tar.bz2 |
Issue20689: add missing API pieces to __all__
Diffstat (limited to 'Lib/socket.py')
-rw-r--r-- | Lib/socket.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/socket.py b/Lib/socket.py index 25631ef..a7cba9a 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 @@ -454,6 +455,7 @@ if hasattr(_socket.socket, "share"): socket.share(pid). """ return socket(0, 0, 0, info) + __all__.append("fromshare") if hasattr(_socket, "socketpair"): |