Get the socket. This should only be called once.
(self)
| 34 | self._id = _resource_sharer.register(send, new_sock.close) |
| 35 | |
| 36 | def detach(self): |
| 37 | '''Get the socket. This should only be called once.''' |
| 38 | with _resource_sharer.get_connection(self._id) as conn: |
| 39 | share = conn.recv_bytes() |
| 40 | return socket.fromshare(share) |
| 41 | |
| 42 | else: |
| 43 | __all__ += ['DupFd'] |
nothing calls this directly
no test coverage detected