Skip to content

Commit 3da5743

Browse files
committed
Issue #27698: Add socketpair to socket.__all__ on Windows
1 parent 034fb56 commit 3da5743

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/socket.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,7 @@ def socketpair(family=AF_INET, type=SOCK_STREAM, proto=0):
519519
finally:
520520
lsock.close()
521521
return (ssock, csock)
522+
__all__.append("socketpair")
522523

523524
socketpair.__doc__ = """socketpair([family[, type[, proto]]]) -> (socket object, socket object)
524525
Create a pair of socket objects from the sockets returned by the platform

0 commit comments

Comments
 (0)