(family=None, type=SOCK_STREAM, proto=0)
| 666 | |
| 667 | if hasattr(_socket, "socketpair"): |
| 668 | def socketpair(family=None, type=SOCK_STREAM, proto=0): |
| 669 | if family is None: |
| 670 | try: |
| 671 | family = AF_UNIX |
| 672 | except NameError: |
| 673 | family = AF_INET |
| 674 | a, b = _socket.socketpair(family, type, proto) |
| 675 | a = socket(family, type, proto, a.detach()) |
| 676 | b = socket(family, type, proto, b.detach()) |
| 677 | return a, b |
| 678 | |
| 679 | else: |
| 680 | socketpair = _fallback_socketpair |
nothing calls this directly
no test coverage detected
searching dependent graphs…