fromshare(info) -> socket object Create a socket object from the bytes object returned by socket.share(pid).
(info)
| 599 | |
| 600 | if hasattr(_socket.socket, "share"): |
| 601 | def fromshare(info): |
| 602 | """ fromshare(info) -> socket object |
| 603 | |
| 604 | Create a socket object from the bytes object returned by |
| 605 | socket.share(pid). |
| 606 | """ |
| 607 | return socket(0, 0, 0, info) |
| 608 | __all__.append("fromshare") |
| 609 | |
| 610 | # Origin: https://gist.github.com/4325783, by Geert Jansen. Public domain. |
nothing calls this directly
no test coverage detected
searching dependent graphs…