[Python-checkins] cpython (3.5): Issue #27698: Add socketpair to socket.__all__ on Windows

victor.stinner python-checkins at python.org
Wed Aug 17 10:14:18 EDT 2016


https://hg.python.org/cpython/rev/ac2bc921169c
changeset:   102728:ac2bc921169c
branch:      3.5
parent:      102726:ed95e9ca2699
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Wed Aug 17 14:40:08 2016 +0200
summary:
  Issue #27698: Add socketpair to socket.__all__ on Windows

files:
  Lib/socket.py |  1 +
  1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/Lib/socket.py b/Lib/socket.py
--- a/Lib/socket.py
+++ b/Lib/socket.py
@@ -519,6 +519,7 @@
         finally:
             lsock.close()
         return (ssock, csock)
+    __all__.append("socketpair")
 
 socketpair.__doc__ = """socketpair([family[, type[, proto]]]) -> (socket object, socket object)
 Create a pair of socket objects from the sockets returned by the platform

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list