]> granicus.if.org Git - python/commitdiff
Issue20689: add missing API pieces to __all__
authorEthan Furman <ethan@stoneleaf.us>
Sat, 18 Oct 2014 22:10:49 +0000 (15:10 -0700)
committerEthan Furman <ethan@stoneleaf.us>
Sat, 18 Oct 2014 22:10:49 +0000 (15:10 -0700)
Lib/socket.py

index a3bdca62bad476d1f3bc050469eb627ccea5bb43..fd2a7d4f8c15078e82b8ab7dd14e7c592bf9df91 100644 (file)
@@ -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"):